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

Description Usage Arguments Value Examples

View source: R/ChiGOF.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

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

pwr2ppl documentation built on April 4, 2021, 9:06 a.m.