Skip to contents

This function is designed to generate an operating curve for sample size determination

Usage

SSDFGS(geno, nt = NULL, n_iter = NULL, multi.threads = FALSE)

Arguments

geno

A numeric data frame carried genotype information (column: PCs, row: sample)

nt

A numeric vector carried training set sizes for r-score simulation.

n_iter

Number of iterations for estimating parameters.

multi.threads

Default: False. If TRUE, this function will use 75% of threads if the computer has more than 4 threads. Multi-thread computing is only avalible in mac and linux environments.

Value

An operating curve and its information.

Author

Jen-Hsiang Ou & Po-Ya Wu

Examples

data(geno)
if (FALSE) SSDFGS(geno)