get_pheno_pair {ALLSPICER}R Documentation

get_pheno_pair

Description

simulation function: simulate true phenotype values of a pair of phenotypes

Usage

get_pheno_pair(b, X, r)

Arguments

b

true effect size matrix of variants on the two phenotypes

X

genotype matrix

r

phenotypic correlation between the two phenotypes

Value

A 2x'n_ind' matrix of phenotype information (first row corresponds to the first phenotype, second row corresponds to the second phenotype)

Examples

AC <- get_ac_mat(n_var=100)
X <- get_geno_mat(AC, n_ind=10000)
b <- get_true_beta(n_var=100, c=0.6, pi=0.5, sigma=1, null=TRUE)
Y <- get_pheno_pair(b=b, X=X, r=0.5)

[Package ALLSPICER version 0.1.9 Index]