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
warning("After converting IDs to numeric, all IDs became NA. This indicates ID coercion collapsed IDs. Please ensure IDs aren't character or factor variables.")
warning("After converting IDs to numeric, some IDs became NA. This indicates ID coercion collapsed some IDs. Please ensure IDs aren't character or factor variables.")
70
+
keep_string<-TRUE
71
+
}
72
+
if(keep_string==TRUE) {
63
73
fam<-data.frame(
64
74
V1= names(wcc$membership),
65
75
V2=wcc$membership
66
76
)
67
-
} else {
77
+
} else {
68
78
fam<-data.frame(
69
79
V1= as.numeric(names(wcc$membership)),
70
80
V2=wcc$membership
71
81
)
72
82
}
73
83
74
84
names(fam) <- c(personID, famID)
85
+
86
+
if(famID%in% names(ped)) {
87
+
if(overwrite) {
88
+
overwrite_message<-"be overwritten."
89
+
ped[[famID]] <-NULL
90
+
} else {
91
+
overwrite_message<-"not be overwritten."
92
+
}
93
+
94
+
warning(sprintf("The famID variable '%s' already exists in the pedigree. The existing variable will %s", famID, overwrite_message))
Copy file name to clipboardExpand all lines: vignettes/articles/tutorialmanuscript.Xmd
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author:
7
7
corresponding: true
8
8
email: "garrissm@wfu.edu"
9
9
abstract: |
10
-
Twin studies remain the dominant design in behavior genetics, yet most twin half-siblings, cousins, and multi-generational relatives whose distinct kinship coefficients jointly identify a richer set of variance components than any MZ/DZ comparison alone. We demonstrate how to fit extended pedigree models using the BGmisc package and OpenMx.
10
+
Twin studies remain the dominant design in behavior genetics, yet most twin half-siblings, cousins, and multi-generational relatives whose distinct kinship coefficients jointly identify a richer set of variance components than any MZ/DZ comparison alone. We demonstrate how to fit extended pedigree models using the BGmisc package and OpenMx.
11
11
We apply the extended pedigree model to mutiple datasets
12
12
of Youth (a large human panel study with researcher-linked kinship), the Kluane Red Squirrel Project
13
13
(a multi-generational animal field study), and a children-of-twins dataset.
@@ -31,8 +31,8 @@ vignette: >
31
31
%\VignetteIndexEntry{Extended Family Modeling with BGmisc}
32
32
%\VignetteEncoding{UTF-8}
33
33
%\VignetteEngine{knitr::rmarkdown}
34
-
editor_options:
35
-
markdown:
34
+
editor_options:
35
+
markdown:
36
36
wrap: 100
37
37
---
38
38
@@ -65,7 +65,7 @@ studies, either intentionally (e.g., twin registries that also include siblings
65
65
byproduct of large panel studies (e.g., the National Longitudinal Survey of Youth, which includes
66
66
researcher-linked kinship). In most cases, the additional relatives are excluded from analysis, and
67
67
the twin design is applied to a subset of the data, even though these relatives carry independent
68
-
information about the genetic and environmental architecture of the phenotype.
68
+
information about the genetic and environmental architecture of the phenotype. For example, many of the twin registries reviewed in FOO, include triplets, sibles, children, parents. https://helda.helsinki.fi/server/api/core/bitstreams/f0b6dc08-69df-449e-a8fe-e2c78abf7f60/content
69
69
70
70
The extended pedigree model, which we have introduced elsewhere (see ETC), leverages the full range
71
71
of kinship coefficients in a pedigree to identify a richer set of variance components than the
@@ -87,15 +87,15 @@ value provides independent leverage for disentangling genetic from environmental
87
87
the number of distinct kinship types increases, so does the number of identifiable variance
88
88
components.
89
89
90
-
Extended pedigree designs have been used in behavior genetics since at least the 1970s [@eaves1978; @fulker_multiple_1988], but they have remained a minority practice. Partially over concerns about model identification and power (Wilson, 1982, 1989), the complexity of fitting these models, and the relative costs of collecting twin data compared to extended family data.
90
+
Extended pedigree designs have been used in behavior genetics since at least the 1970s [@eaves1978; @fulker_multiple_1988], but they have remained a minority practice. Partially over concerns about model identification and power (Wilson, 1982, 1989), the complexity of fitting these models, and the relative costs of collecting twin data compared to extended family data.
but also because the twin design has been so successful and widely adopted. The twin design is often seen as the "gold standard" in behavior genetics, and many researchers may be hesitant to deviate from this established approach. Additionally, many human datasets simply do not include the necessary family structure to fit extended pedigree models, which may limit their applicability in certain contexts.
95
95
96
96
<the reasosn are numerous for why this is the case, but a key factor is that many human datasets simply do not include the necessary family structure to fit these models. And the twin design is often the default analytic approach, even when more complex family data are available.
97
97
98
-
Deriving
98
+
99
99
100
100
In contrast, similar
101
101
models are common in plant and animal breeding, where pedigree data is more routinely collected and
0 commit comments