[R] Help with nlme--freq weights, logit model, and more

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri Apr 18 23:53:13 CEST 2003


SamL <saml at demog.berkeley.edu> writes:

> > fm1<-nlme(model=plfp ~ (exp(-1+bm + bmxd +
> +              wm + wmxd +
> +              bf + bfxd +
> +              wf + wfxd +
> +              yrsed + age + age2)) / (1+exp(-1+bm + bmrd +
> +              wm + wmxd +
> +              bf + bfxd +
> +              wf + wfxd +
> +              yrsed + age + age2)),
> +       fixed=list(bm ~ 1, bmxd ~ 1,
> +                  wm ~ 1, wmxd ~ 1,
> +                  bf ~ 1, bfxd ~ 1,
> +                  wf ~ 1, wfxd ~ 1,
> +              yrsed ~ 1, age ~ 1, age2 ~ 1,
> +       data = PLFPANAL,
> +       random=list(bm ~ 1, wm ~ 1, bf ~ 1, wf ~ 1),
> +       start = c(bm = 0, bmxd = 0,
> +              wm = 0, wmxd = 0,
> +              bf = 0, bfxd = 0,
> +              wf = 0, wfxd = 0,
> +              yrsed = 0, age = 0, age2 = 0))
> Error in parse(file, n, text, prompt) : parse error

Insert parenthesis at end of "fixed" list...
-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907



More information about the R-help mailing list