Re: [R] No P.values in polr summary

2013-10-19 Thread vincent guyader
2013/10/19 Prof Brian Ripley > On 18/10/2013 15:01, Vincent Guyader wrote: > >> Hi everyone, >> >> If I compute a "Ordered Logistic or Probit Regression" with the polr >> function from MASS package. the summary give me : coefficients, Standard >> er

[R] No P.values in polr summary

2013-10-18 Thread Vincent Guyader
Hi everyone, If I compute a "Ordered Logistic or Probit Regression" with the polr function from MASS package. the summary give me : coefficients, Standard error and Tvalue.. but not directly the p.value. I can compute "manualy" the Pvalue, but Is there a way to directly obtain the pa.value, and

[R] An Apply function question about changing type of variable

2013-09-27 Thread Vincent Guyader
Hi everyone, plese can you look at this few lines : data(iris) res<-apply(iris,MARGIN=2,is) res[1,] the result is : Sepal.Length Sepal.Width Petal.Length Petal.Width Species "character" "character" "character" "character" "character" How can I conserve the type off each colum? apply

Re: [R] Adding a function with default parameters into the Rcmdr menu

2012-11-23 Thread vincent guyader
I will try this. thank you. 2012/11/23 Milan Bouchet-Valat > Le vendredi 23 novembre 2012 à 03:17 +0100, vincent guyader a écrit : > > Hi everyone, > > > > I made some tests with Rcmdr, to add a function with default parameters : > > > > For example (very simp

[R] Adding a function with default parameters into the Rcmdr menu

2012-11-22 Thread vincent guyader
Hi everyone, I made some tests with Rcmdr, to add a function with default parameters : For example (very simple): myfunction<-function(var="314"){ print("hello") print(var) } if I run myfunction() directly i see : > myfunction() [1] "hello" [1] "314" it's ok. But if i edit de Rcmdr-menu.txt

Re: [R] tcl/tk problem with tklistbox,the " " character and Rcmdr.

2012-11-20 Thread vincent guyader
t; HTH, > Yves > > > Le 20/11/2012 11:25, vincent guyader a écrit : > > I everyone, > > > > i have a little problem with tklistbox,the " " character and Rcmdr. > > > > Please look at this code > > > > require(tcltk) > > tt&

[R] tcl/tk problem with tklistbox,the " " character and Rcmdr.

2012-11-20 Thread vincent guyader
I everyone, i have a little problem with tklistbox,the " " character and Rcmdr. Please look at this code require(tcltk) tt<-tktoplevel() levels.list2 <-tklistbox(tt,selectmode="multiple",exportselection="FALSE", height=4, yscrollcommand=function(...)tkset(levels.list2.scroll,...)) levels.list2.s

Re: [R] "NA-friendly" operator

2012-10-31 Thread vincent guyader
Here's one option: > > vec<-c(3,4,5,NA,1,NA,9,NA,1) > > subset(vec, vec > 2) > [1] 3 4 5 9 > > subset(vec, vec == 1) > [1] 1 1 > > Sarah > > On Tue, Oct 30, 2012 at 5:08 PM, vincent guyader > wrote: > > Hi everyone, > > > > i'

[R] "NA-friendly" operator

2012-10-30 Thread vincent guyader
Hi everyone, i'm looking for a "NA-friendly" operator I explain : vec<-c(3,4,5,NA,1,NA,9,NA,1) vec[vec == 1] # NA 1 NA NA 1 I dont want the NA's : vec[vec == 1 & ! is.na(vec)]# 1 1 is the same as vec[vec %in% 1] # 1 1 %in% is NA-friendly :) But if i want

[R] eval and tcltk : target of assignment expands to non-language object

2012-09-24 Thread vincent guyader
Hi everyone, I have a problem to assign a value with tcl/tk ths is the code ( it should be simple to understand) : library(tcltk) valA<-tclVar("0") valB<-tclVar("0") valC<-tclVar("0") id<-"A" out<-"1" out2<-"2" print(paste("tclvalue(val",id,")",sep="")) # ok print(as.name(paste("tclvalue(val",

Re: [R] NLS bi exponential Fit

2012-08-25 Thread vincent guyader
thanks it seems to be a good idea. a also find the PK package with the biexp function. 2012/8/23 Peter Ehlers > > Have you checked help(SSbiexp) ? > > Peter Ehlers > > > On 2012-08-23 04:54, vincent guyader wrote: > >> Hi everyone, >> >> I'm

[R] NLS bi exponential Fit

2012-08-23 Thread vincent guyader
Hi everyone, I'm trying to perform a bi exponential Fit with the package NLS. the plinear algorithm seems to be a good choice see: p<-3000 q<-1000 a<--0.03 b<--0.02 t<-seq(0:144);t y<-p*exp(a*t) + q*exp(b*t)+rnorm(t,sd=0.3*(p* exp(a*t) + q*exp(b*t))) fittA <- nls(y~cbind(exp(a*t), exp(b*t)), alg

Re: [R] Tk grid problem

2012-07-16 Thread vincent guyader
=1,column=3-1,columnspan=2,rowspan=2,sticky="wens") sapply(0:3, function(i) { if(i < 3) tkgrid.rowconfigure(tt, i, weight = 1) tkgrid.columnconfigure(tt, i, weight = 1) }) thanks again 2012/7/16 vincent guyader > thanks for your answer, i will try this. > > Regards > >

Re: [R] Tk grid problem

2012-07-16 Thread vincent guyader
thanks for your answer, i will try this. Regards 2012/7/16 j verzani > vincent guyader gmail.com> writes: > > > > > Hi everybody, > > > > I have a problem with the grid function in tk. > >

[R] Tk grid problem

2012-07-16 Thread vincent guyader
Hi everybody, I have a problem with the grid function in tk. I juste try to put 4 buttons like this: --- ||| || C| | A|| ||| -- D| ||| | B|| --- A is 2x2 C is