Description Usage Arguments Author(s) See Also Examples
Liabilitythreshold model for twin data
1 2 3 4 5 6  bptwin(x, data, id, zyg, DZ, group = NULL, num = NULL, weights = NULL,
biweight = function(x) 1/min(x), strata = NULL, messages = 1,
control = list(trace = 0), type = "ace", eqmean = TRUE,
pairs.only = FALSE, samecens = TRUE, allmarg = samecens &
!is.null(weights), stderr = TRUE, robustvar = TRUE, p, indiv = FALSE,
constrain, bound = FALSE, varlink, ...)

x 
Formula specifying effects of covariates on the response. 
data 

id 
The name of the column in the dataset containing the twinid variable. 
zyg 
The name of the column in the dataset containing the zygosity variable. 
DZ 
Character defining the level in the zyg variable corresponding to the dyzogitic twins. 
group 
Optional. Variable name defining group for interaction analysis (e.g., gender) 
num 
Optional twin number variable 
weights 
Weight matrix if needed by the chosen estimator (IPCW) 
biweight 
Function defining the bivariate weight in each cluster 
strata 
Strata 
messages 
Control amount of messages shown 
control 
Control argument parsed on to the optimization routine. Starting values may be parsed as ' 
type 
Character defining the type of analysis to be performed. Should be a subset of "acde" (additive genetic factors, common environmental factors, dominant genetic factors, unique environmental factors). 
eqmean 
Equal means (with type="cor")? 
pairs.only 
Include complete pairs only? 
stderr 
Should standard errors be calculated? 
robustvar 
If TRUE robust (sandwich) variance estimates of the variance are used 
p 
Parameter vector p in which to evaluate logLikelihood and score function 
indiv 
If TRUE the score and logLikelihood contribution of each twinpair 
constrain 
Development argument 
samecens 
Same censoring 
allmarg 
Should all marginal terms be included 
bound 
Development argument 
varlink 
Link function for variance parameters 
... 
Additional arguments to lower level functions 
Klaus K. Holst
twinlm
, twinlm.time
, twinlm.strata
, twinsim
1 2 3 4 5 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.