[R-sig-ME] xtable question
Kris Jamsen
kmjamsen at unimelb.edu.au
Fri Dec 12 00:25:51 CET 2008
This looks promising - I'll give it a go.
Cheers,
Kris
-----Original Message-----
From: dmbates at gmail.com [mailto:dmbates at gmail.com] On Behalf Of Douglas
Bates
Sent: Friday, 12 December 2008 9:54 AM
To: Kris Jamsen
Cc: Martin Henry H. Stevens; r-sig-mixed-models at r-project.org
Subject: Re: [R-sig-ME] xtable question
On Thu, Dec 11, 2008 at 4:25 PM, Kris Jamsen <kmjamsen at unimelb.edu.au>
wrote:
> Thanks Hank for your quick reply. Yes, I tried to coerce my nlme
object
> into a data.frame object but xtable told me I couldn't do that. The
> nlme object is just an nlme model, so I would imagine it would be
> similar in nature to an lm object, but with a few more bits. It looks
> like I might have to try to extend the list of available classes in
> xtable (this might take some time!) or do something more manual.
Would
> be glad to hear more suggestions!
An nlme object is not just an extension of an lm object. There is a
lot more going on in nlme or lme than is the case in lm.
I expect that in creating a table from such an object you want the
table of estimates of the fixed-effects parameters, their approximate
standard errors and so on displayed as a table. To get that table you
apply summary to the fitted model and save the result. There is a
component of that object with a name like ttable which is the table of
fixed-effects estimates, etc. Use
str(summary(lmeFittedModel))
to find the exact name and format.
More information about the R-sig-mixed-models
mailing list