s-news
[Top] [All Lists]

How to extract elements from a fitted model?

To: <s-news@lists.biostat.wustl.edu>
Subject: How to extract elements from a fitted model?
From: "WEN Songqiao" <sqwen@math.hkbu.edu.hk>
Date: Mon, 10 Apr 2006 17:22:07 +0800
Organization: HKBU
Reply-to: "WEN Songqiao" <sqwen@math.hkbu.edu.hk>
Hi, everyone
I want to do simulation with R, how can I extract the estimate   "0.9005372   1.1191585   2.0367914"  and "0.9957503  0.9231837"  from the following fitted model and put them into a null vector  a?
thanks,
WEN Songqiao
----------------------------------------------------------------------------------------------------------------------------------------------
Linear mixed-effects model fit by REML
  Data: data1
  Log-restricted-likelihood: -478.909
  Fixed: yij ~ xi1 + xi2
(Intercept)         xi1         xi2
  0.9005372   1.1191585   2.0367914
 
Random effects:
 Formula: ~+1 | subject
        (Intercept)  Residual
StdDev:   0.9957503 0.9231837
 
Number of Observations: 300
Number of Groups: 100
----------------------------------------------------------------------------------------------------------------------------------------
<Prev in Thread] Current Thread [Next in Thread>