summary.irtpwrresult: Summary of the Power Analysis

View source: R/summary.irtpwrresult.R

summary.irtpwrresultR Documentation

Summary of the Power Analysis

Description

Output the resulting power or sample size for each statistic

Usage

## S3 method for class 'irtpwrresult'
summary(object, ..., power = NULL, N = NULL, alpha = NULL)

Arguments

object

Object of class irtpwrresult as created by the irtpwr function

...

additional arguments to be passed

power

numeric, statistical power for which the necessary sample size is calculated

N

integer, sample size for which the statistical power is calculated.

alpha

numeric, alpha level

Value

An object of class summary.irtpwrresult

Examples



library(mirt)
dat <- expand.table(LSAT7)
mirtfit <- mirt(dat,1,verbose = FALSE)
hyp <- setup.hypothesis(type = '1PLvs2PL', altpars = mirtfit)
res <- irtpwr(hyp=hyp,alpha=.05,power =.8)
summary(res)


irtpwr documentation built on Nov. 20, 2023, 5:07 p.m.