[R] nls: how do you know if the model is significant?

2012-06-05 Thread Nerak
7.279 6.19e-06 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 13.21 on 13 degrees of freedom Number of iterations to convergence: 6 Achieved convergence tolerance: 9.123e-06 I know that my parameters are significant but I need to say something ab

[R] Non-linear curve fitting (nls): starting point and quality of fit

2012-06-04 Thread Nerak
number of nonlinear parameters), or less than the number of rows (the number of observations), nls stops.") I hope someone can help me with this questions. I would like to know what's happening and not just having to accept the results I get now :). Kind regards, Nerak -- View t

[R] size of graphs when using multiple figures by row

2012-03-13 Thread Nerak
t;) mtext("testen") hist(islands, freq=FALSE,col="blue",main="test") mtext("testen") hist(islands, freq=FALSE,col="blue",main="test") mtext("testen") (normally, I specify my breaks, ylab and xlab, xlim and y li

[R] apply with as function ifelse with 2 logical conditions

2012-02-20 Thread Nerak
,1,0,0,0,0,1,0,0,0,0,0,0),F=c(0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0)) Has someone a suggestions about what I’m doing wrong? Many thanks, Nerak -- View this message in context: http://r.789695.n4.nabble.com/apply-with-as-function-ifelse-with-2-logical-conditions-tp4403637p4403637.html Sent from the R help maili

Re: [R] function similar to ddply? + calculations based on previous row

2012-02-15 Thread Nerak
I saw I made a little mistake in the loop, in the line test.number$numberb[y-Year[1]+1]<-length(which(test.starty==1 & test.f[(n+1)]== 1 )) it is n+1 instead of n-1 (like I wrote in the beginning) But the question I have about it is still the same. My excuzes Year<-data.frame(Date=c(1980,19

[R] function similar to ddply? + calculations based on previous row

2012-02-15 Thread Nerak
datasets. I'm trying to get through the apply family to find solutions but it's a hard issue. Many thanks in advance, Kind regards, Nerak -- View this message in context: http://r.789695.n4.nabble.com/function-similar-to-ddply-calculations-based-on-previous-row-tp439092

[R] different way for a for loop for several columns?

2012-02-13 Thread Nerak
1980, ten for all the objects for year 1981 and so on. Does somebody knows a way to do this? I was thinking about some kind of form of apply, but it’s not that I have created a function that has to be applied on a whole column, calculations are done for the different rows… Many thanks for

[R] manipulating data of several columns simultaneously

2012-01-18 Thread Nerak
a. I’m also wondering if it’s possible not using column numbers in a function, but the name if those are structured in the same way? Eg. depth_’followed by a number’ If you want for example to do something with the columns depth_1, depth_1.5, depth_2, depth_2.5, depth_3 … belonging to a dataframe wi

[R] result numeric(0) when using variable1[which(variable2="max(variable2)"]

2012-01-17 Thread Nerak
ich(results5$R2 == "0.6081547")] # nor results5$Cvalue[which(results5$R2 == "max(results5$R2)")] # works… I hope someone can help me with this problem Kind regards Nerak -- View this message in context: http://r.789695.n4.nabble.com/result-numeric-0-when-using-variable1-whi

Re: [R] Accomplishing a loop on multiple columns

2012-01-12 Thread Nerak
Many thanks! Never used lists before, but it’s a great solution! It works very well! Although, I have a next question concerning this. I want to know for which value (column) I have the maximal Rsquared. Therefore, I unlist the LIST so that it’s written like a vector. The columns were always na

Re: [R] Accomplishing a loop on multiple columns

2012-01-12 Thread Nerak
I just saw a little mistake in my last post: Totally in the end, last line of the last loop, results$depth[,u] [t-1] should be results$newdepth[,u] [t-1]. My apologies. for (u in 1:91) { results$newdepth [,u]<- results$depth [,u] for (t in 2:60) { results$newdepth[,u][t] <- results$newdepth[,u] [t

[R] Accomplishing a loop on multiple columns

2012-01-11 Thread Nerak
he for loop is apparently also no a solution). I’m looking for a manner to repeat a calculation/function on several columns. I kind of need this as well further in my script, not only in this part… I would greatly appreciate any suggestions! Thanks! Nerak -- View this message in context: ht