[R] for loop using index values

2014-05-14 Thread David Gwenzi
subsets. How do I set the for loop. I have tried the following but it is still processing everything select-which(nrow(subset[[i]])=100 for (i in c(select)){ .. } Thank you in advance, David Gwenzi Graduate Degree Program in Ecology Natural Resources Ecology Lab Colorado State

[R] Fwd: Intepreting lm() results with factor

2013-12-02 Thread David Gwenzi
Dear all I have observations done in 4 different classes and the between classes *variance* is too high that I decided to run a model without pooling the *variance*. I used the following code first : model-lm(y~x+factor(class)) and got the following output: Coefficients:

[R] R nls results different from those of Excel ??

2013-02-18 Thread David Gwenzi
Hi all I have a set of data whose scatter plot shows a very nice power relationship. My problem is when I fit a Power Trend Line in an Excel spreadsheet, I get the model y= 44.23x^2.06 with an R square value of 0.72. Now, if I input the same data into R and use model -nls(y~ a*x^b , trace=TRUE,