| musculus {PBImisc} | R Documentation |
A dataset relatead to mice musculus growth which depends on diet and genetic structure
Description
Dataset from the book ,,Modele liniowe i mieszane w R, wraz z przykladami w analizie danych”.
Usage
data(musculus)
Format
data.frame with 30 obs. and 10 variables
idan individual id
dadidid of father, 0 for founders
momidid of mother, 0 for founders
sexsex
sigmamaximal stress
dietdiet, D1 or D2
k1resilience coefficient in point 1
k2resilience coefficient in point 2
E1Younga module in point 1
E2Younga module in point 2
Details
Dataset from the book ,,Modele liniowe i mieszane w R, wraz z przykladami w analizie danych”.
Used as an example of model with mixed effects where random effects have know dependency structure, here related to the kinship coefficient.
Examples
## Not run:
require(kinship2)
pedmus <- pedigree(musculus$id, musculus$dadid, musculus$momid, musculus$sex)
plot(pedmus, affected=musculus$diet)
fam <- makefamid(musculus$id, musculus$dadid, musculus$momid)
kmatrix <- makekinship(fam, musculus$id, musculus$dadid, musculus$momid)
kmatrix[1:5,1:15]
## End(Not run)
[Package PBImisc version 1.0 Index]