Description Usage Arguments Value Examples
Generate inv to mat, use DMU formart to asreml format
1 | sparse2mat(x)
|
x |
sparse inv that have three column:id1 id2 value |
matrix
1 2 3 4 5 6 | library(GS)
dmu_inv <- data.frame(ID1 = rep(1:3,each=3),ID2 = rep(1:3,3),value=rnorm(9)+5)
dmu_inv
asr_mat <- sparse2mat(dmu_inv)
asr_inv <- write_mat_to_inv(asr_mat,"none")
asr_inv
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.