You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -44,6 +45,8 @@ This vignette extends the example from `vignette("v60_pedigree_model_fitting", p
44
45
# Scaling Up to Many Families
45
46
46
47
48
+
Here we replicate several estimates of heritability across multiple families of red squirrels. We use the `redsquirrels_full` dataset from the `ggpedigree` package, which contains pedigree and phenotypic data on red squirrels from the Kluane region of the Yukon, Canada. The phenotype we analyze is lifetime reproductive success (LRS), which is a count of the number of offspring that survive to a certain age.
49
+
47
50
```{r krsp-prep}
48
51
library(ggpedigree) # for pedigree data)
49
52
library(tidyverse)
@@ -118,6 +121,7 @@ for (i in seq_len(n_families)) {
118
121
rownames(A_i) <- colnames(A_i) <- obs_ids_i
119
122
rownames(Cn_i) <- colnames(Cn_i) <- obs_ids_i
120
123
rownames(Mt_i) <- colnames(Mt_i) <- obs_ids_i
124
+
121
125
add_list[[i]] <- A_i
122
126
cn_list[[i]] <- Cn_i
123
127
mt_list[[i]] <- Mt_i
@@ -126,7 +130,18 @@ for (i in seq_len(n_families)) {
As you can see, we have fit a multigroup pedigree model using `r n_families` families of several thousand squirrels. The model includes additive genetic variance (Vad), common nuclear environmental variance (Vcn), and unique environmental variance (Ver). The mitochondrial variance component (Vmt) was included in the MACE model but not estimated in the ACE model. The results show the proportion of total variance attributed to each component, which can be interpreted as heritability and environmental contributions to the phenotype of interest (LRS) in these
0 commit comments