search for: 2plalphagenpars_1

Displaying 1 result from an estimated 1 matches for "2plalphagenpars_1".

2009 Mar 22
1
Converting Matrix into List - problem (urgent)
...g code: path = ("C:/2PL_Alpha_C_2PL_Loading") setwd(path) getwd() congeneric = matrix(rep(NA,36),nrow=6,ncol=6) conFirst = matrix(rep(NA,36),nrow=6,ncol=6) conFirstTwenty = rep(NA, 20) k = 1 #Reading all the Alpha and Congeneric 2PL values into variables alpha <- read.table("2PLAlphaGenPars_1.dat", header=FALSE) congeneric <- read.table("C_parameter_estimates_1.dat", header=FALSE) for (i in 1:6) { for (j in 1:6) { conFirst[i,j] = as.matrix(congeneric[i,j]) if (k <= 20) { conFirstTwenty[k] = as.list(conFirst[i,j]) k = k + 1 } } } In th...