View source: R/summary.irtpwrresult.R
summary.irtpwrresult | R Documentation |
Output the resulting power or sample size for each statistic
## S3 method for class 'irtpwrresult'
summary(object, ..., power = NULL, N = NULL, alpha = NULL)
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 |
An object of class summary.irtpwrresult
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.