Learn R Programming

ipd (version 0.1.4)

rectified_p_value: Rectified P-Value

Description

Computes a rectified p-value.

Usage

rectified_p_value(
  rectifier,
  rectifier_std,
  imputed_mean,
  imputed_std,
  null = 0,
  alternative = "two-sided"
)

Value

(float or vector): The rectified p-value.

Arguments

rectifier

(float or vector): Rectifier value.

rectifier_std

(float or vector): Rectifier standard deviation.

imputed_mean

(float or vector): Imputed mean.

imputed_std

(float or vector): Imputed standard deviation.

null

(float, optional): Value of the null hypothesis to be tested. Defaults to 0.

alternative

(str, optional): Alternative hypothesis, either 'two-sided', 'larger' or 'smaller'.

Examples

Run this code

rectifier <- 0.7

rectifier_std <- 0.5

imputed_mean <- 1.5

imputed_std <- 0.3

rectified_p_value(rectifier, rectifier_std, imputed_mean, imputed_std)

Run the code above in your browser using DataLab