checkdist: Using simulation, check the operating characteristics of two...

View source: R/checkdist.R

checkdistR Documentation

Using simulation, check the operating characteristics of two sample pooled and unpooled t tests, under various assumptions on the ratio of group standard deviations.

Description

Using simulation, check the operating characteristics of two sample pooled and unpooled t tests, under various assumptions on the ratio of group standard deviations.

Usage

checkdist(m, n, nsamp = 10000, nrat = 5)

Arguments

m

number of independent observations in first group.

n

number of independent observations in second group.

nsamp

number of samples.

nrat

number of standard deviation ratios to explore, beginning at 1, ending at 10

Value

A list with components out a matrix with nrat rows and two columns giving counts of samples with type I errors. rat the vector of sd ratios nsamp copy of the input nsamp m copy of the input m n copy of the input n

Examples

a<-checkdist(4,4,nsamp=1000)

kolassa-dev/TheorStat documentation built on Dec. 7, 2023, 12:23 a.m.