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

Description Usage Arguments Value

View source: R/p_val_null.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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.


fwildclusterboot documentation built on May 2, 2021, 1:06 a.m.