chi_power: This function runs the chi-square test for continuous or...

View source: R/chi_power.R

chi_powerR Documentation

This function runs the chi-square test for continuous or discrete data

Description

This function runs the chi-square test for continuous or discrete data

Usage

chi_power(
  rxy,
  alpha = 0.05,
  B = 1000,
  xparam,
  yparam,
  nbins = c(50, 10),
  minexpcount = 5,
  typeTS
)

Arguments

rxy

a function to generate data

alpha

=0.05 type I error probability of test

B

=1000 number of simulation runs

xparam

vector of parameter values

yparam

vector of parameter values

nbins

=c(50, 10) number of desired bins

minexpcount

=5 smallest number of counts required in each bin

typeTS

type of problem, continuous/discrete, with/without weights

Value

A matrix of power values


R2sample documentation built on June 17, 2025, 1:07 a.m.