[R] simulate data based on partial correlation matrix

2008-08-04 Thread Benjamin Michael Kelcey
Given four known and fixed vectors, x1,x2,x3,x4, I am trying to generate a fifth vector,z, with specified known and fixed partial correlations. How can I do this? In the past I have used the following (thanks to Greg Snow) to generate a fifth vector based on zero order correlations---howe

[R] simulate data based on partial correlation matrix

2008-08-04 Thread Benjamin Michael Kelcey
Given four known and fixed vectors, x1,x2,x3,x4, I am trying to generate a fifth vector,z, with specified known and fixed partial correlations. How can I do this? In the past I have used the following (thanks to Greg Snow) to generate a fifth vector based on zero order correlations---howe

[R] Extract Residual Variance from lmer using VarCorr

2008-11-03 Thread Benjamin Michael Kelcey
I am trying to extract the residual variance from an lmer object. I have tried using VarCorr() which allows me to see the estimate but can not save it by itself. How can I get this from VarCorr() or is there another function available for this? Thanks, ben _

[R] Extract Residual Variance from lmer using VarCorr

2008-11-04 Thread Benjamin Michael Kelcey
I am trying to extract the residual variance from an lmer object. I have tried using VarCorr() which allows me to see the estimate but can not save it by itself. How can I get this from VarCorr() or is there another function available for this? Thanks, ben __