Learn R Programming

NSM3 (version 1.1)

nb.mc: Function to compute the Monte Carlo P-value for the observed Hollander-Proschan T statistic.

Description

This is the Monte Carlo approximation to the newbet function.

Usage

nb.mc(x, alternative = "two.sided", exact=FALSE, 
      min.reps = 100, max.reps = 1000, delta = 10^-3)

Arguments

Value

The function returns a list with two elements:Tthe value of the Hollander-Proschan statisticpthe corresponding probability

Examples

Run this code
table11.4<-c(194,15,41,29,33,181)
nb.mc(table11.4, alt="nbu")

Run the code above in your browser using DataLab