Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

Copy Link

Version

Install

install.packages('amp')

Monthly Downloads

228

Version

1.0.0

License

GPL (>= 3)

Maintainer

Adam Elder

Last Published

April 6th, 2022

Functions in amp (1.0.0)

est_pows

A helper function to estimate the power using the generated test statistic, and estimated distribution of the test statistic.
add_oth_pvals

Add Other p-values
ic.data.examp

Function for calculating the influence function used for the real data example.
find_mag

A helper function to find the multiplicative distance of a specified alternative from the alternative in the same direction that obtains a power of 80%.
ic.proj.rr

Estimate both the parameter, and the influence curves used for estimating the projected risk ratio. The first column of your data should correspond to the variable of interest.
ic.proj.rr.nolas

Estimate both the parameter, and or the influence curves used for estimating the projected risk ratio (not using lasso). The first column of your data should correspond to the variable of interest.
mv_pn_test

Runs a multivariate point null test. This function returns an approximate p-value for the specified test statistic.
pval_for_mag

A helper function that calculates the estimated p-value for a given observed alternative and a given norm.
mag_for_pow

This function is used to estimate the magnitude needed for a certain direction to achieve 80% power for a proposed alternative.
make_data

Generate data using one of the four specified models from MCKEAGUE and QIAN paper
test.control

Control function for the adaptive norm test
rr.msm.ic

Estimate both the parameter, and the influence curves used for estimating the projected risk ratio from a working marginal structural mean model.
rr.msm.jn.ic

Estimate both the parameter, and the influence curves used for estimating the projected risk ratio from a working marginal structural mean model. This function only uses elastic net for the estimation (rather than also using other learners).
accept_rate

Estimate the local acceptance rate
l_p_norm

A function used to calculate various L_p norms
look_IC

This a function used to look at the IC.
ic.pearson

Pearson Correlation IC and estimate
ZL

Carry out a simplified version of the Zhang and Laber test.
calc_gam_star

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

A helper function to generate a multiplier bootstrap sample
get_test_stat

Helper function for the Zhang and Laber test.