startvalue {hscovar}R Documentation

Start value for estimating optimal sample size

Description

Calculation of start value for estimating optimal sample size

Usage

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

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

[Package hscovar version 0.4.2 Index]