[R] Can nonlinear models be used in gee?
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Tue Apr 4 17:48:16 CEST 2000
On Tue, 4 Apr 2000, Jinn-Yuh Guh wrote:
> Hi all,
> 1. Can nonlinear models be used in gee? For example, I have a dataset which contains 2 variables x and y, I wrote
> data(ex)
> atttach(ex)
> a<-100
> b<- -0.5
> c<-4.5
> d<-20
> Then:
> a. y~gee(y~d+(a-d)/(1+(x/c)^b))
> Error in terms.formula(formula, data = data) :
> invalid power in formula
> b. y~gee(y~d+(a-d)/(1+(x/c))
> Error in model.frame(formula, rownames, variables, varnames, extras, extranames, :
> variable lengths differ
> Why?
Not in the gee function in addon package gee. Try the help! It points you
to lm.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list