Description Usage Arguments Details Value
sibcorr
estimates sibling or cousin correlations with optional block bootstrap standard errors.
1 2 |
formula |
Three-part formula describing the outcome variable, control variables to be regressed out, and identifiers for the individual, immediate family, and extended family |
data |
Estimation data set. |
weight |
Select one of four weighting schemes. |
restriction |
Put a restriction on the pairs to be used for estimating the covariance |
variance |
Estimate variance on all individuals ("pre", the default) or only restricted sample ("post") |
reps |
Number of bootstrap replications - if set to zero, confidence intervals are not estimated |
ci_level |
Set level for bootstrap confidence interval |
cores |
Set number of processor cores to use for bootstrap estimation |
The formula must be specified as outcome ~ controls | individual + family + ext_family
,
where individual
is an individual identifier, family
is a family (sibling group) identifier,
and ext_family
is an extended family (cousin group) identifier.
If ext_family
is omitted, the sibling correlation is estimated -
otherwise, the cousin correlation is estimated
The formula does not handle functions on the left hand side. This means that any transformations of the outcome variable must be performed before estimation.
The restriction is specified as a vector with the first element giving the name of the variable to restrict on. If the second element is 0, only pairs with the same value are used. If the second element is a positive integer, only pairs with that specific difference are used. If the second element is "unequal", only pairs with different values for the variable are used. If two integers are given (as second and third elements), and the first is smaller than the second, only pairs with a difference within that range (inclusive) are used; if the second is smaller than the first, only pairs with a difference outside that range (exclusive) are used.
The estimated sibling or cousin correlation coefficient, number of individuals, sibling or cousin pairs, and families or extended families, and optionally a bootstrap confidence interval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.