[R] ANCOVA with defined error terms

Richard M. Heiberger rmh at temple.edu
Sun Aug 23 05:26:24 CEST 2009


Your email program truncated the model.  It would not run,
hence was not reproducible.
The last few characters of the first line are

    +Error(block/plot,

which is syntactically impossible because there is no
closing parenthesis before the comma.
Try executing your email and see the difficulty.

Please resend the model statement from your source file,
not from the R output window,
with no more than 60 characters per line.

I am asking for the following from the trailer of all R-help email
"and provide commented, minimal, self-contained, reproducible code."

I have the dataset now

 > dim(track)
[1] 168   9
 > sapply(track, class)
      plot     veget     fruit      time     block   rawcoon      coon 
     mice
  "factor"  "factor"  "factor"  "factor"  "factor" "numeric" "numeric" 
"numeric"
   rawmice
"numeric"
 > sapply(track, function(x) length(levels(x)))
    plot   veget   fruit    time   block rawcoon    coon    mice rawmice
      12       2       2      14       3       0       0       0       0
 >


Rich




More information about the R-help mailing list