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 = NULL, pheno.sd = NULL,
  pheno.error = NULL, pheno.reliability = NULL)

Arguments

seed
phenotype

outcome status.

pheno.model

distribution of the outcome variable: binary=0, normal=1

pheno.sd

standard deviation of the outcome in the study population

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.ExE documentation built on May 10, 2019, 7:30 a.m.