14.09.2015 Views

Matvec Users’ Guide

Matvec Users' Guide

Matvec Users' Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

62 CHAPTER 10. LINEAR MODEL ANALYSES<br />

• In statement<br />

D.input("try.dat","animal\$ herd _skip y");<br />

the dollar sign (\$) after animal is used to indicate that this data-column is string column. The _skip<br />

is one of reserved data-column name meaning to skip or ignore the column.<br />

• In statement<br />

M.equation("y = intercept + herd + animal");<br />

the intercept is a reserved model-term meaning an intercept or a grand-mean. The + between model<br />

terms is optional. The interaction term or the nested term can be expressed in the same way as SAS.<br />

For instance, A*B and x(A). The above statement about model can also be re-written as<br />

M.equation("y = intercept +",<br />

"herd + animal");<br />

This should give you enough hint about how to break down a model with dozens of terms.<br />

If you add a semicolon(;) after statement M.blup(), then BLUP solution would not be displayed on<br />

screen.<br />

Now, at the <strong>Matvec</strong> prompt, I type<br />

> input try2<br />

i = 1 i = 2 i = 3 i = 4 i = 5<br />

7.42 0 1.69 0.26 -0.26<br />

i = 6 i = 7 i = 8<br />

0.26 -0.67 0.67<br />

If you want a more descriptive output for BLUP, then use statement M.save("try.out") right after<br />

M.blup(). The following could be the possible contents in "try.out":<br />

some extra information in the model<br />

------------------------------------------------<br />

variance for animal =<br />

Col 1<br />

Row 1 1<br />

residual variance =<br />

Col 1<br />

Row 1 2<br />

MME dimension : 8<br />

non-zeros in MME: 23<br />

basic statistics for dependent variables<br />

------------------------------------------------<br />

trait-name n mean std<br />

y 6 8.33333 2.06559<br />

--------------------------------------------------<br />

BLUP (BLUE, Posterior_Mean)<br />

-----------------------------------------------

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!