Learn R Programming

dbEmpLikeNorm (version 1.0.0)

varianceEstimator: Internal Function for calculating an estimation of variance

Description

internal function not called by user

Usage

varianceEstimator(numberOfgroups, sample.size, nsims, qhat, o.nsims)

Arguments

numberOfgroups
numeric indicating the number of groups in study
sample.size
numeric vector indicating sample.size of each group
nsims
The current number of simulations being investigated
qhat
posterior expecation of quantiles (results of computeQhat)
o.nsims
number of simulations to add in each turn of the baysian approach

Value

returns a list of length two containing vector of new simulations and variance estimation

Details

This function is used in the BayesWays function to calculate the variance and the new vector of simulations being investigated