⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mcmcirtkd.r

📁 使用R语言的马尔科夫链蒙特卡洛模拟(MCMC)源代码程序。
💻 R
字号:
############################################################################ 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -