calc_gam_star: A helper function for mv_pn_test, calculating the test...

Description Usage Arguments Value

View source: R/calc_gam_star.R

Description

A helper function for mv_pn_test, calculating the test statistic for both the vector of parameter estiamtes, and the draws from the corresponding estimated limiting distribution.

Usage

1
calc_gam_star(obs_data, param_est, control, lm_dst = NULL, return_lmd = FALSE)

Arguments

obs_data

The observed data used to calculate the test statistic. Each row is an observation and each column corresponds to either the outcome (first column) or a covariate.

param_est

A function used to estimate both they parameter of interest and the IC of the corresponding estimator.

control

A list providing control arguments for the function.

lm_dst

A list containing an estimate of the limiting distribution and corresponding norm specific test cutoffs if it is provided.

return_lmd

Boolean for whether to return the estimated limiting distribution.

Value

Calculated test statistic for the given data.


adam-s-elder/amar documentation built on Feb. 5, 2022, 7:10 a.m.