demo_permutations: Demonstration means and variances using permutations

Description Usage Arguments Value Examples

View source: R/demo_permutations.r

Description

Demonstration means and variances using permutations

Usage

1
2
3
4
5
6
7
8
9
demo_permutations(
  population = c(1:3),
  sample.size = 2,
  pop.mu = NULL,
  pop.sigma2 = NULL,
  show.summary = TRUE,
  show.plots = TRUE,
  show.details = TRUE
)

Arguments

population

A vector of values to be sampled from

sample.size

A number (2-10) for the number of observations to be drawn

pop.mu

A value for population true mean

pop.sigma2

A value for population true variance

show.summary

Controls display of summary statistics (TRUE/FALSE)

show.plots

Controls whether plots are shown

show.details

Controls whether permutations are shown

Value

ratio of estimated variance/true variance

Examples

1
2
3
4
## Not run: 
demo_permutations(population=c(1:3),sample.size=2)

## End(Not run)

CLPS0900/CLPS0900R documentation built on March 16, 2020, 4:55 a.m.