Learn R Programming

dbEmpLikeNorm (version 1.0.0)

BayesWays: Internal Function for Baysian Approach

Description

internal function not called by user

Usage

BayesWays(numberOfgroups, sample.size, alpha, nsims=200, v.threshold=NA)

Arguments

numberOfgroups
numeric indicating the number of groups in study
sample.size
numeric vector indicating sample.size of each group
alpha
numeric indication of desired significance level
nsims
The number of simulations to generate and investigate in each turn of baysian approach
v.threshold
a numeric threshold for the variance. This threshold must be met to accept calculated value of baysian approach. If NA, a variance estimate is calculated and used as threshold.

Value

returns a vector of test statistic cutoff and variance estimate

Details

This function is used in the returnCutoffValue function to estimates the statistic cutoff for a desired target alpha utlizing a baysian approach.