conf.statement: Confidence Statement for Ordered Population Median

Description Usage Arguments Details Value Examples

View source: R/func.r

Description

Evaluates the Confidence Statement for Ordered Population Median.

Usage

1

Arguments

data

is a list of observed vectors/samples.

verbose

print the results (TRUE).

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

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.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
  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)

MedOr documentation built on May 2, 2019, 2:42 a.m.