+ Reply to Thread
Results 1 to 2 of 2

Thread: How to calculate residual covariance in R

  1. #1
    Points: 12, Level: 1
    Level completed: 23%, Points required for next Level: 38

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to calculate residual covariance in R




    I know it is may be a silly question but I am looking for an answer
    if I fitted a linear model

    c<- lm (y~ a+ b)

    I need to get the residual covariance matrix between traits
    how can I do that??
    Also,
    if I am fiting a mixed model
    how do I obtain the residual covariance matrix ??

  2. #2
    Points: 3,631, Level: 37
    Level completed: 88%, Points required for next Level: 19
    staassis's Avatar
    Location
    New York
    Posts
    226
    Thanks
    2
    Thanked 41 Times in 39 Posts

    Re: How to calculate residual covariance in R


    Covariance between what and what? The residuals in your case are returned as c$residuals.

+ Reply to Thread

           




Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats