rejection {simMetric}R Documentation

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,
  ...
)

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.

Value

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

Examples

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

[Package simMetric version 0.1.1 Index]