prediction: Predicts the probability of having the given trait

View source: R/prediction.R

predictionR Documentation

Predicts the probability of having the given trait

Description

The function will take outcome from pred_model and use it an to find the PRS of each subject having the trait/sickness.

Usage

prediction(test_data, gwas, thr)

Arguments

test_data

List generated from gen_sim.

thr

Threshold for p-value to be used in calculating PRS.

model

Output from pred_model.

Value

A matrix containing predictions.


Holdols/genstats documentation built on June 10, 2022, 6:05 a.m.