Learn R Programming

fwildclusterboot (version 0.3.4)

p_val_null2: Calculate p-values based on A, B, CC, CD, DD and other inputs

Description

Calculate p-values based on A, B, CC, CD, DD and other inputs

Usage

p_val_null2(
  beta0,
  A,
  B,
  CC,
  CD,
  DD,
  clustid,
  boot_iter,
  small_sample_correction,
  impose_null,
  point_estimate,
  p_val_type
)

Arguments

beta0

Scalar. Shifts the null hypothesis.

A

A list.

B

A list.

CC

A list.

CD

A list.

DD

A list.

clustid

A data.frame containing the cluster variables.

boot_iter

An integer. Number of bootstrap iterations.

small_sample_correction

A vector of the dimension of ncol(clustid)

impose_null

If TRUE, no null hypothesis if imposed on the bootstrap

point_estimate

The point estimate of the test parameter from the regression model.

p_val_type

type Type of p-value. By default "two-tailed". Other options: "equal-tailed", ">", "<"

Value

A list containing the bootstrapped p-value, the bootstrapped t-statistics, and the number of invalid test statistics.