Re: [R] help with one matrix

2005-09-11 Thread Gabor Grothendieck
On 9/10/05, Jose Claudio Faria [EMAIL PROTECTED] wrote: Dear R-list, Could anybody tell me how to make one matrix as the below: [,1] [,2] [,3] [,4] [,5] [,6] [1,]-23456 [2,]2-2345 [3,]32-234 [4,]432

Re: [R] help with one matrix

2005-09-11 Thread Jose Claudio Faria
Gabor Grothendieck wrote: On 9/10/05, Jose Claudio Faria [EMAIL PROTECTED] wrote: Dear R-list, Could anybody tell me how to make one matrix as the below: [,1] [,2] [,3] [,4] [,5] [,6] [1,]-23456 [2,]2-2345 [3,]32-23

Re: [R] [handling] Missing [values in randomForest]

2005-09-11 Thread Uwe Ligges
Jan-Paul Roodbol wrote: Does anyone know if randomForest in R can handle dataset with missings? See ?randomForest, you can omit observations including NAs by specifying na.action=na.omit Please do not cross-post! Please specify a sensible subject! Uwe Ligges Thank you Kind regards

Re: [R] Output of warnings inside the source function

2005-09-11 Thread Uwe Ligges
Arkady Sherman wrote: Hello, all. There is a problem to get an output of warnings() function to sink in a file specified. There are to files 1. File test with content: source(test_foo,local=T) 2. and file test_foo with content: options(warn = 1) sink(c:/temp/foo.txt,append=F)

[R] Create New variable

2005-09-11 Thread Marc Bernard
Dear All, I want to create one numeric variable from a factor one. here is a simple example: x1 x2 factor x11x21f1 x12x22f1 x13x23f2 x14x24f3 .. . .. . Suppose that the variable factor has 3 levels (f1,f2,f3). I want

Re: [R] Create New variable

2005-09-11 Thread Peter Dalgaard
Marc Bernard [EMAIL PROTECTED] writes: Dear All, I want to create one numeric variable from a factor one. here is a simple example: x1 x2 factor x11x21f1 x12x22f1 x13x23f2 x14x24f3 .. . .. . Suppose that

Re: [R] help with one matrix

2005-09-11 Thread Gabor Grothendieck
On 9/11/05, Jose Claudio Faria [EMAIL PROTECTED] wrote: Gabor Grothendieck wrote: On 9/10/05, Jose Claudio Faria [EMAIL PROTECTED] wrote: Dear R-list, Could anybody tell me how to make one matrix as the below: [,1] [,2] [,3] [,4] [,5] [,6] [1,]-23456

Re: [R] [handling] Missing [values in randomForest]

2005-09-11 Thread Jim Porzak
On 9/11/05, Uwe Ligges [EMAIL PROTECTED] wrote: Jan-Paul Roodbol wrote: Does anyone know if randomForest in R can handle dataset with missings? See ?randomForest, you can omit observations including NAs by specifying na.action=na.omit Uwe, While strictly true, this tells randomForest

Re: [R] Output of warnings inside the source function

2005-09-11 Thread Arkady Sherman
Uwe Ligges wrote: Arkady Sherman wrote: Hello, all. There is a problem to get an output of warnings() function to sink in a file specified. There are to files 1. File test with content: source(test_foo,local=T) 2. and file test_foo with content: options(warn = 1)

[R] Backtransforming regression coefficient for scaled covariate

2005-09-11 Thread Gorjanc Gregor
Hello! Scaling i.e. (x - mean(x)) / sd(x) of covariates in the model can improve the efficiency of estimation. That is nice, but sometimes one needs to report estimates for original scale. I was able to backtransform estimates of linear regression quite easily but I stumped on higher

Re: [R] Output of warnings inside the source function

2005-09-11 Thread Thomas Lumley
On Sun, 11 Sep 2005, Arkady Sherman wrote: c:\Program Files\R\rw2011\bin\R.exe --no-save test out.txt the file c:/temp/foo.txt will contain nothing. But I'd like it should contain the warning message Foo warning. Is the behavior a bug of R or there is another way to get it working. The

[R] Simulate phi-coefficient

2005-09-11 Thread David Duffy
From: Bliese, Paul D LTC USAMH [EMAIL PROTECTED] Given a sample of zeros and ones, for example: VECTOR1-rep(c(1,0),c(15,10)) How would I create a new sample (VECTOR2) also containing zeros and ones, in which the phi-coefficient between the two sample vectors was drawn from a population

[R] how to do multiple comparisons in R?

2005-09-11 Thread Hongyu Sun
Hi, Sorry I have to bother a question. Does R have the functions to do lsd, tukey, bonferonni, contrast etc. like in SAS? Many thanks, HS __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] how to do multiple comparisons in R?

2005-09-11 Thread Adaikalavan Ramasamy
Certainly yes and more. Try checking under http://finzi.psych.upenn.edu/nmz.html and http://cran.r-project.org/manuals.html Regards, Adai On Sun, 2005-09-11 at 20:12 -0500, Hongyu Sun wrote: Hi, Sorry I have to bother a question. Does R have the functions to do lsd, tukey, bonferonni,

Re: [R] how to do multiple comparisons in R?

2005-09-11 Thread Simon Blomberg
R has various methods for multiple comparison procedures. See package multcomp, or ?TukeyHSD or ?pairwise.t.test for example. An RSiteSearch(multiple comparison) returned 187 results. A priori contrasts can be constructed using the make.contrasts function in the gmodels package, for example.

[R] Help with a more flexible funtion for multiple comparision of means

2005-09-11 Thread Jose Claudio Faria
Dear R-list, Could anybody tell me (or give me a tip) of how to implement the Duncan distribution in R? I've been trying to make a new and more flexible function for multiple comparison of means: Tukey, SNK and Duncan, from 'aov' objects, like TukeyHSD function. For while, it is running nice

Re: [R] help with one matrix

2005-09-11 Thread Jose Claudio Faria
Hi Jim, Many thanks for the function! -- Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Adjunto mails: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] tel: 73-3634.2779 __ R-help@stat.math.ethz.ch mailing list