Learn R Programming

NSM3 (version 1.1)

klefsjo.ifra.mc: Function to compute the Monte Carlo P-value for the observed Klefsjo's B* statistic.

Description

This is the Monte Carlo approximation to the function "klefsjo.ifra".

Usage

klefsjo.ifra.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:B.starthe value of the Klefsjo statisticpthe corresponding probability

Examples

Run this code
temp.data<-c(0.33925023, 0.84005767, 0.29066189, 1.95163010, 0.74536608, 0.16714902, 0.06950791, 
1.14919291,1.93210982, 1.06006126, 0.14651009, 0.28776282, 0.72242750, 1.02227211, 1.71243334)
klefsjo.ifra.mc(temp.data, exact=TRUE)

Run the code above in your browser using DataLab