startvalue: Start value for estimating optimal sample size

Description Usage Arguments Details Value Examples

View source: R/powercalc.R

Description

Calculation of start value for estimating optimal sample size

Usage

1
startvalue(lambda, R, nfam, weights = 1)

Arguments

lambda

shrinkage parameter

R

(p x p) matrix containing theoretical correlation between SNP pairs

nfam

number of half-sib families

weights

vector (LEN p) of SNP-specific weights or scalar if weights are equal for all SNPs; default value 1

Details

Minimum sample size that exceeds residual degrees of freedom; this value can be used as start value in grid search for optimal sample size

Value

start value

Examples

1
2
3
  ### correlation matrix (should depend on sire haplotypes)
  R <- AR1(100, rho = 0.1)
  startvalue(1200, R, 10)

hscovar documentation built on April 13, 2021, 9:06 a.m.

Related to startvalue in hscovar...