search for: un2010frame

Displaying 1 result from an estimated 1 matches for "un2010frame".

2011 Apr 18
0
error message while running IRT model
...want to recode colname <- names(UN2010) ## this applies the recode functionto all the variable I want to recode UN2010[colname] <- lapply(UN2010[colname], function(x) recode(x, recodes = "8=NA", as.factor.result = FALSE, as.numeric.result = TRUE)) UN2010frame<-data.matrix(lapply(UN2010,as.numeric)) ord.out1<-ordrating(UN2010, beta.constraint=1, tune=.035, ma=1, mb=-5, vinva=1, vinvb=0.05, gamma.start=c(-300, 0, 1.5, 3.0, 4.5, 300), thin=20, burnin=20000, mcmc=100000, verbose=1000) ########################################################## Howev...