Learn R Programming

MedOr (version 0.1)

conf.statement: Confidence Statement for Ordered Population Median

Description

Evaluates the Confidence Statement for Ordered Population Median.

Usage

conf.statement(data,verbose=TRUE)

Arguments

data
is a list of observed vectors/samples.
verbose
print the results (TRUE).

Value

A list with components:
call
command evaluated.
statement.level
the confidence statement level.
stat.order.i
the numbers of the order statistics of i-th group.
conf.statement.i
the values of the order statistics of i-th group.
total.groups
the total number of groups.
run.time
Time spent.

Details

The confidence statement is evaluated for the population median consedering: The population median of the group 1 is lower than the population median of the group 2, and this is lower than the population median of the group 3, and so... That is, M1 < M2 < ... < Mk, where Mj is the population median of the group j.

The group j is the j-th vector in the data (a list object).

Examples

Run this code
  set.seed(1234)
  # Statement: M1 < M2 < M3, where Mj is the population
  #   median of the group j.
  data <- NULL
  data$x1 <- rnorm(10,0,1)
  data$x2 <- rnorm(10,1,1)
  data$x3 <- rnorm(10,2,1)
  conf.statement(data)

  # Statement: M2 < M3 < M1, where Mj is the population
  #   median of the group j.
  data2 <- NULL
  data2$g1 <- data$x2
  data2$g2 <- data$x3
  data2$g3 <- data$x1
  conf.statement(data2)

Run the code above in your browser using DataLab