Re: [R] [External] Calculation error found

2022-04-07 Thread Richard M. Heiberger
Probably numerical precision. See FAQ 7.31 which is on your computer. Enter system(paste("open",file.path(base::system.file(), "../../doc/manual/R-FAQ.pdf"))) and the FAQ file will open. x <- 20 y <- 19.99 x-y x == y > On Apr 07, 2022, at 12:20, Sara Bortot wrote: > > Good ev

Re: [R] Calculation error found

2022-04-07 Thread Bert Gunter
Most attachments are stripped, as was yours. However, even without the info, the answer is very likely FAQ 7.31. Computer arithmetic. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom Coun

Re: [R] Package nlme

2022-04-07 Thread John Fox
Dear Rohan, Bert Gunter has already made several general useful suggestions. In addition, why did you make the variable on the left-hand side of the model a factor? Shouldn't it be a numeric variable? I hope this helps, John -- John Fox, Professor Emeritus McMaster University Hamilton, Onta

Re: [R] Package nlme

2022-04-07 Thread Bert Gunter
1. We are not a "help desk", in the sense of being constituted by a software provider for customer support. This is a forum of volunteers. Not a big deal, but no guarantees and caveat emptor. 2. You may get a reply here, but there is another forum specifically for nlme (and its successor, lme4),

[R] Package nlme

2022-04-07 Thread Rohan Richard via R-help
Dear Help Desk, I am trying to perform a non-linear regression (Sigmoid curves) using the R package nlme. My field trial is a randomised complete block design (RCBD) with 3 blocks and I would like to assess the block effect in the model. Do you know how I can incorporate the block term in nlme