get.obs.pheno: Generates observed outcome data

Description Usage Arguments Value Author(s)

Description

Adds a set level of error to error free binary or quantitative data (the true phenotype data) to obtain data with a larger variance (the observed phenotype data).

Usage

1
2
get.obs.pheno(phenotype = NULL, pheno.model = 0, pheno.sd = 1,
  pheno.error = c(0.05, 0.05), pheno.reliability = 0.9)

Arguments

phenotype

outcome status.

pheno.model

distribution of the outcome variable: binary=0, normal=1 or uniform=2.

pheno.sd

standard deviation of the outcome in the study the population

pheno.error

misclassification rates: 1-sensitivity and 1-specificity

pheno.reliability

reliability of the assessment for a quantitative outcome.

Value

A dataframe containing: true.phenotype the error free outcome data (true data). observed.phenotype the true outcome data with some added error (observed data).

Author(s)

Gaye A.


agaye/ESPRESSO.G documentation built on May 10, 2019, 7:31 a.m.