validate: Validate the performance of EBPRS

Description Usage Arguments Author(s) References See Also Examples

View source: R/validate.R

Description

Provide the performance evaluated by predictive r2 and AUC.

Usage

1
validate(score, truey)

Arguments

score

polygenic score generated by 'EBPRS'

truey

the true phenotype (the 6th column in the fam file)

Author(s)

Shuang Song, Wei Jiang, Lin Hou and Hongyu Zhao

References

Song S, Jiang W, Hou L, Zhao H (2020) Leveraging effect size distributions to improve polygenic risk scores derived from summary statistics of genome-wide association studies. PLoS Comput Biol 16(2): e1007565. https://doi.org/10.1371/journal.pcbi.1007565

See Also

EBPRS

Examples

1
validate(score=rnorm(20,0,1), truey=sample(0:1,20,replace=TRUE))

shuangsong0110/EBPRS documentation built on Feb. 17, 2020, 6:14 p.m.