Learn R Programming

simMetric (version 0.1.1)

rejection: Calculate the rejection

Description

Calculates the rejection (%) of the model p-values, according to the specified alpha, and the Monte Carlo standard error for this estimate.

Usage

rejection(
  p,
  alpha = 0.05,
  get = c("rejection", "rejection_mcse"),
  na.rm = FALSE,
  ...
)

Value

A named vector containing the estimate and the Monte Carlo standard error for the rejection.

Arguments

p

P-values from the models.

alpha

The nominal significance level specified. The default is 0.05.

get

A character vector containing the values returned by the function.

na.rm

A logical value indicating whether NA values for p should be removed before rejection calculation.

...

Additional arguments to be ignored.

Examples

Run this code
rejection(p=runif(200, min=0, max=1))

Run the code above in your browser using DataLab