theil.kendall {ANSM5}R Documentation

Calculate Theil-Kendall beta

Description

theil.kendall() calculates the Theil-Kendall beta and is used in chapter 11 of "Applied Nonparametric Statistical Methods" (5th edition)

Usage

theil.kendall(
  y,
  x,
  H0 = NULL,
  do.abbreviated = FALSE,
  do.alpha = FALSE,
  alternative = c("two.sided", "less", "greater"),
  CI.width = 0.95,
  max.exact.cases = 10,
  nsims.mc = 1e+05,
  seed = NULL,
  do.asymp = FALSE,
  do.exact = TRUE,
  do.CI = FALSE,
  do.mc = FALSE
)

Arguments

y

Numeric vector of same length as x

x

Numeric vector of same length as y

H0

Null hypothesis value (defaults to NULL)

do.abbreviated

Boolean indicating whether or not to use abbreviated Theil procedure (defaults to FALSE)

do.alpha

Boolean indicating whether or not to report estimate of alpha (defaults to FALSE)

alternative

Type of alternative hypothesis (defaults to two.sided)

CI.width

Confidence interval width (defaults to 0.95)

max.exact.cases

Maximum number of cases allowed for exact calculations (defaults to 10)

nsims.mc

Number of Monte Carlo simulations to be performed (defaults to 100000)

seed

Random number seed to be used for Monte Carlo simulations (defaults to NULL)

do.asymp

Boolean indicating whether or not to perform asymptotic calculations (defaults to FALSE)

do.exact

Boolean indicating whether or not to perform exact calculations (defaults to TRUE)

do.CI

Boolean indicating whether or not to perform confidence interval calculations (defaults to FALSE)

do.mc

Boolean indicating whether or not to perform Monte Carlo calculations (defaults to FALSE)

Value

An ANSMstat object with the results from applying the function

Examples

# Example 11.6 from "Applied Nonparametric Statistical Methods" (5th edition)
theil.kendall(ch11$reportedtime, ch11$parentlimit, do.alpha = TRUE)

# Exercise 11.10 from "Applied Nonparametric Statistical Methods" (5th edition)
theil.kendall(ch11$N.Scotland, ch11$SW.England)


[Package ANSM5 version 1.1.0 Index]