Learn R Programming

dbEmpLikeNorm (version 1.0.0)

computeQhat: Internal Function for calculating the posterior expectation of quantiles

Description

internal function not called by user

Usage

computeQhat(vec.teststats, alpha, nsims, part1)

Arguments

vec.teststats
alpha
The significance level for the test.
nsims
The current number of simulations being investigated
part1
a vector of length two containing test statistic and variance estimate (results from getCutoffTaleTwo/getCutoffTableThree)

Value

returns a numeric representing posterior expectation of quantiles

Details

This function is used in the BayesWays function to calculate the posterior expectation of qualitles for a set of test statistics