ChiGOF: Compute power for an Chi Square Goodness of Fit Takes...

View source: R/ChiGOF.R

ChiGOFR Documentation

Compute power for an Chi Square Goodness of Fit Takes proportions for up to six group. Alpha is .05 by default, alternative values may be entered by user

Description

Compute power for an Chi Square Goodness of Fit Takes proportions for up to six group. Alpha is .05 by default, alternative values may be entered by user

Usage

ChiGOF(
  groups,
  po1,
  po2,
  po3 = NULL,
  po4 = NULL,
  po5 = NULL,
  po6 = NULL,
  n,
  alpha = 0.05
)

Arguments

groups

Number of groups

po1

Proportion observed Group 1

po2

Proportion observed Group 2

po3

Proportion observed Group 3

po4

Proportion observed Group 4

po5

Proportion observed Group 5

po6

Proportion observed Group 6

n

Total sample size

alpha

Type I error (default is .05)

Value

Power for Chi Square Goodness of Fit

Examples

ChiGOF(po1=.25, po2=.20, po3=.20, po4=.35, groups=4,n=100)

pwr2ppl documentation built on Sept. 6, 2022, 5:06 p.m.