search for: ampmixed

Displaying 1 result from an estimated 1 matches for "ampmixed".

2008 May 25
1
How to write a package based on nlme
Dear R Helpers, I try to write a small package that based on nlme however my code does not work. R always appears this message: Error in eval(expr, envir, enclos) : object "y" not found where y is the response variable. Please help me out! This is my code: require(nlme) AMPmixed<-function(y, x, S1=c("asymptotic","logistic"), random,data, S2=c("asymptotic","logistic"), start) { logist.logist<-function(x,alpha,delta,psi.l,tau.l,gamma,h){ delta+(alpha-delta+gamma*(x-(h-1))/exp(x))/(1+exp(-(x-tau....