Learn R Programming

hettx (version 0.1.3)

get.p.value: get p-value along with uncertainty on p-value

Description

Give confidence bounds (from monte carlo simulation error) for the p-values returned by a test

Usage

get.p.value(tst)

Value

p-value and range of p-values due to monte carlo error.

Arguments

tst

A FRTCI.test object from detect_idiosyncratic()

Examples

Run this code
Z <- rep(c(0, 1), 100)
tau <- 4
Y <- ifelse(Z, rnorm(100, tau), rnorm(100, 0))
df <- data.frame(Y=Y, Z=Z)
tst <- detect_idiosyncratic(Y ~ Z, df, B = 50, grid.size = 50)
get.p.value( tst )

Run the code above in your browser using DataLab