FindVariances: Find variances according to problem parameters

Description Usage Arguments Details Value

View source: R/FindVariances.R

Description

Find variances according to problem parameters

Usage

1
FindVariances(var_eq, ME_var_ratio, theta_squared)

Arguments

var_eq

if TRUE VX=VY, else VX=2VY (b=1,2 in Ben's notation)

ME_var_ratio

(defaults to 1) determines the ratio of diseased/healthy ME variance (a in Ben's notation)

theta_squared

contamination ratio

Details

Find the variances from the problem parameters as in Reiser, 2000. The healthy population's variance is always VY=1. If var_eq = TRUE then VX=VY, else VX=2VY=2.

Value

a named vector with the variances to be used for the given parameters


blebedenko/thescript2 documentation built on Dec. 19, 2021, 9:53 a.m.