Matvec Users’ Guide
Matvec Users' Guide
Matvec Users' Guide
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
11.2. PENALIZED QUASI-LIKELIHOOD 81<br />
M.weight("n");<br />
M.variance("rep",2);<br />
M.variance("rep*logdose",.1);<br />
M.variance("rep","rep*logdose",.01);<br />
M.link("logit",0)<br />
M.fitdata(D);<br />
M.glim(10);<br />
M.vce_aireml(25,0);<br />
M.contrast("formul",[1 ,-1]);<br />
M.info("dose_rr.info")<br />
The resulting dose rr.info:<br />
some extra information in the model<br />
--------------------------------------------------------<br />
AI REML converged<br />
maximum log restricted likelihood = -295.803<br />
variance for rep =<br />
0.892352 -0.0532517<br />
-0.0532517 0.029527<br />
residual variance =<br />
1<br />
MME dimension : 16<br />
non-zeros in MME: 92<br />
basic statistics for dependent variables<br />
-----------------------------------------------------<br />
trait-name n mean std<br />
perc_pos 70 0.371429 0.348139<br />
--------------------------------------------------------<br />
11.2.2 Multivariate Correlated Random Effects<br />
Data on body weight at 6 weeks of age and adjusted 4-6 week feed intake on 284 mice 3 will be used to illustrate<br />
a multi-trait analysis with correlated random effects. The model includes fixed effects for generation, litter<br />
size, and sex. The random effects include direct and maternal genetic effects and a litter effect. The structures<br />
of the covariance matrices are<br />
⎛<br />
⎞<br />
σa1 2 σ a12 σ a1m1 σ a1m2 ( G = ⎜ σ a1a2 σa2 2 σ a2m1 σ a2m2<br />
⎟ σ<br />
⎝σ a1m1 σ a2m1 σm1 2 σ m12<br />
⎠ , C = 2<br />
c1<br />
σ c12<br />
σa1m2 2 σ a1m2 σ m12 σm2<br />
2<br />
Using the following variance component estimates,<br />
σ c12<br />
σc2<br />
2<br />
)<br />
, and R =<br />
⎛<br />
⎞<br />
4.2 −.08 .41 −.12 ( )<br />
G = ⎜−.08 5.9 1.4 −.65<br />
⎟ .25 .24<br />
⎝ .41 1.4 1.7 −1.7⎠ , C = , and R =<br />
.24 1.8<br />
−.12 −.65 −1.7 2.1<br />
BLUEs and BLUPs can be obtained with the following code:<br />
( σ<br />
2<br />
e1 σ e12<br />
σ e12<br />
σ 2 e2<br />
( )<br />
2.1 2.5<br />
,<br />
2.5 1.8<br />
3 Meyer, K. (1991). Estimating variances and covariances for multivariate Animal Models by Restricted Maximum Likelihood.<br />
Genet. Sel. Evol. 23: 67-83.<br />
)<br />
.