[R] Query: lme output

From: Pryseley Assam <assampryseley_at_yahoo.com>
Date: Tue 30 May 2006 - 20:37:19 EST

Dear R-Users    

  I have a problem accessing some values in the output from the summary of an lme fit.    

  I fit the model below:    

  ggg <- lme (ST~ -1 + as.factor(endp):Z.sas + as.factor(endp), data=dat4a,   random=~-1 + as.factor(endp) + as.factor(endp):Z.sas|as.factor(trials),   correlation = corSymm(form=~1|as.factor(trials)/as.factor(id)), weights=varIdent(form=~1|endp))    

  hh <- summary(ggg)

  Below is the following part of the output of interest:    

  Correlation Structure: General
 Formula: ~1 | as.factor(trials)/as.factor(id)  Parameter estimate(s):
2 0.785
Variance function:
 Structure: Different standard deviations per stratum  Formula: ~1 | endp
 Parameter estimates:

       -1 1
1.0000000 0.9692405    

  I wish to access the value of the correlation (0.785) and the vector of the variance function estimates (1,0.969). I know these can be done throught the intervals function, but sometimes when the estimated Hessian matrix is not positive definite or something like that (i am not quite sure), the intervals function delivers an error message.    

  Thus, i will like to ask if there is another way to access these values. I tried using the following code:    


  Rather the output was:    

  > hh$modelStruct$corStruct[1]
[1] -1.308580
> hh$modelStruct$varStruct[1]

[1] -0.03124255    

  I presume there is a way to calculate the correlation and variance function coefficients using these values.    

  Could someone tell me how to access those values (without using the intervals function) or better still how to calculate the values from the last output values.    

  Kind regards

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 30 20:48:43 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 30 May 2006 - 22:10:17 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.