Learn R Programming

hscovar (version 0.4.2)

startvalue: 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

Value

start value

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

Examples

Run this code
# NOT RUN {
  ### correlation matrix (should depend on sire haplotypes)
  R <- AR1(100, rho = 0.1)
  startvalue(1200, R, 10)
# }

Run the code above in your browser using DataLab