musculus: A dataset relatead to mice musculus growth which depends on...

Description Usage Format Details Examples

Description

Dataset from the book ,,Modele liniowe i mieszane w R, wraz z przykladami w analizie danych”.

Usage

1

Format

data.frame with 30 obs. and 10 variables

id

an individual id

dadid

id of father, 0 for founders

momid

id of mother, 0 for founders

sex

sex

sigma

maximal stress

diet

diet, D1 or D2

k1

resilience coefficient in point 1

k2

resilience coefficient in point 2

E1

Younga module in point 1

E2

Younga 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

pbiecek/PBImisc documentation built on May 24, 2019, 10:35 p.m.