Learn R Programming

Omisc (version 0.1.2)

DFanalysis: DFanalysis

Description

DFanalysis

Usage

DFanalysis(data = NULL, proband, sibling, Rs, RK = T, robust = T,
  DE = T, betasonly = F, typicalSE = F)

Arguments

data

A dataframe. This is not necessary as the variables can be passed directly via the other arguments.

proband

Called "proband" for historical reasons this is the variable on the left hand side of the regression.

sibling

The right hand side version of proband. This would be the matched sibling scores.

Rs

This is the vector of relatedness coefficients

RK

Use the Rodgers and Kohler simplified version of the DF model (recommended). Data should not be double entered prior to analysis.

robust

Use the Kohler and Rodgers robust standard errors (recommeneded when using double entered data)

DE

Will the data need to be double entered?

betasonly

If TRUE only the beta weights from the regression analysis will be returned.

typicalSE

Should the typical regression standard errors be used? Default is false.

Value

The results from MyLM

Examples

Run this code
# NOT RUN {
TwinData<-DFSimulated(2000,2000,.3,.3)
p<-TwinData[,1]
s<-TwinData[,2]
r<-TwinData[,3]
DFanalysis(data=NULL, p,s,r)
# }

Run the code above in your browser using DataLab