mcmcirtkd.r
来自「使用R语言的马尔科夫链蒙特卡洛模拟(MCMC)源代码程序。」· R 代码 · 共 38 行
R
38 行
############################################################################ sample from a K-dimensional two-parameter item response model with## probit link. This is just a wrapper function that calls## MCMCordfactanal.#### Andrew D. Martin## Washington University#### Kevin M. Quinn## Harvard University#### June 8, 2003############################################################################"MCMCirtKd" <- function(datamatrix, dimensions, item.constraints=list(), burnin = 1000, mcmc = 10000, thin=1, verbose = 0, seed = NA, alphabeta.start = NA, b0=0, B0=0, store.item=FALSE, store.ability=TRUE, drop.constant.items=TRUE, ... ) { datamatrix <- as.matrix(datamatrix) post <- MCMCordfactanal(x=datamatrix, factors=dimensions, lambda.constraints=item.constraints, burnin=burnin, mcmc=mcmc, thin=thin, tune=NA, verbose=verbose, seed=seed, lambda.start=alphabeta.start, l0=b0, L0=B0, store.lambda=store.item, store.scores=store.ability, drop.constantvars=drop.constant.items, model="MCMCirtKd") return(post) }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?