Learn R Programming

pleiotest (version 1.0.0)

pleio_simulate: Create simulations

Description

Example function to create simulations with no effects.

Usage

pleio_simulate(n_traits, n_individuals, n_snp, percentage_mv = 0)

Arguments

n_traits

number of traits to simulate.

n_individuals

number of individuals to simulate.

n_snp

number of SNPs to simulate.

percentage_mv

proportion of missing values. By default = 0.

Value

a list with pheno and geno to test the pleioR function.

Examples

Run this code
# NOT RUN {
sim1 <- pleio_simulate(n_traits = 3, n_individuals = 1e4, n_snp = 1e3, percentage_mv = 0.1)
# }

Run the code above in your browser using DataLab