Displaying 2 results from an estimated 2 matches for "getparsgnls".
2012 Feb 13
0
Error from GNLS (undefined columns selected)
...0
and this is my call of gnls:
fm1 <- gnls(V0 ~ mymodel(V1,V2,V3,V4,V5,par1,par2,par3,par4,par5,par6,par7,par8), data=input,start=list(par1=0.2,par2=0.4,par3=0.8,par4=0.2,par5=10,par6=0.8,par7=0.9,par8=-0.5))
and I get the following error:
Error in `[.data.frame`(eval(model, data.frame(data, getParsGnls(plist, :
undefined columns selected
My guess is that R is not able to create that data.frame since "getParsGnls", an internal function of gnls, does not provide its output (obviously the error is mine, but I can't clearly identify it). Indeed, in the previous lines of the gnls c...
2001 May 30
2
environments
I would like to be able, inside a function, to create a new function, and
use it as part of a formula as an argument to, say, gnls or nlme. for
example:
MyTop <- function(data=dta) {
Cexp <- function(dose,A,B,m){...}
Model <- as.formula(paste("y","~ Cexp(",paste(formals(Cexp),collapse
=", "),")"))
MyCall <-