Re: [R] Lattice: raw data and prediction of a non linear fitted function

2015-08-06 Thread François Collin
nls, newdata = list(time = > seq(0,55,5))) >print(xy.pre) >llines( seq(5,60,5), xy.pre, col = "blue") > } else { >xy.pre <- predict(xy.nls, newdata = list(time = > seq(5,60,5))) >prin

[R] Lattice: raw data and prediction of a non linear fitted function

2015-08-05 Thread François Collin
Dear all, I have a question about lattice use. I would like to use it to represent: - my raw data as points, - and the results of a non linear fit as a line, - having 2 groups data (and so 2 colors). However, as I have few raw data, I would like to increase the number of points to smooth the line

[R] Contr.sum and coefficient tests

2015-07-23 Thread François Collin
Dear all, I would like to run a linear model which includes two factors: - The first one has two levels, including a reference level. Thus I have to use the treatment contrast (contr.treatment, reference level effect = 0, then the intercept). - The second is a 6-level factor without reference co