cc_trf {r2redux}R Documentation

cc_trf function

Description

This function transforms the predictive ability (R2) and its standard error (se) between the observed scale and liability scale

Usage

cc_trf(R2, se, K, P)

Arguments

R2

R2 or coefficient of determination on the observed or liability scale

se

Standard error of R2

K

Population prevalence

P

The ratio of cases in the study samples

Value

This function will transform the R2 and its s.e between observed scale and liability scale.Output from the command is the lists of outcomes.

R2l

Transformed R2 on the liability scale

sel

Transformed se on the liability scale

R2O

Transformed R2 on the observed scale

seO

Transformed se on the observed scale

References

Lee, S. H., Goddard, M. E., Wray, N. R., and Visscher, P. M. A better coefficient of determination for genetic profile analysis. Genetic epidemiology,(2012). 36(3): p. 214-224.

Examples

#To get the transformed R2

output=cc_trf(0.06, 0.002, 0.05, 0.05)
output

#output$R2l (transformed R2 on the liability scale)
#0.2679337

#output$sel (transformed se on the liability scale)
#0.008931123

#output$R2O (transformed R2 on the observed scale)
#0.01343616

#output$seO (transformed se on the observed scale)
#0.000447872

[Package r2redux version 1.0.17 Index]