16
16
function printout () {
17
var save = getValue("chk_save");
17
var save = getValue("save_name.active");
18
18
var save_name = getValue("save_name");
20
20
echo ('rk.header ("Unidimensionality check (' + getValue("x") + ')")\n');
21
echo ('rk.print (unidim.res)\n');
21
echo ('rk.print ("Call:")\n');
22
echo ('rk.print.literal (deparse(unidim.res$call, width.cutoff=500))\n');
23
echo ('rk.header ("Matrix of tertachoric correlations:", level=4)\n');
24
echo ('rk.print (unidim.res$Rho)\n');
25
echo ('rk.header ("Unidimensionality Check using Modified Parallel Analysis:", level=4)\n');
26
echo ('rk.print ("Alternative hypothesis: <em>The second eigenvalue of the observed data is substantially larger than the second eigenvalue of data under the assumed IRT model</em>")\n');
27
echo ('rk.print (paste("Second eigenvalue in the observed data:", round(unidim.res$Tobs[2], digits=3)))\n');
28
echo ('rk.print (paste("Average of second eigenvalues in Monte Carlo samples:", round(mean(unidim.res$T.boot[,2]), digits=3)))\n');
29
echo ('rk.print (paste("Monte Carlo samples:", dim(unidim.res$T.boot)[1]))\n');
30
echo ('rk.print (paste("p-value:", round(unidim.res$p.value, digits=3)))\n');
22
31
// check if results are to be saved:
23
32
if (save && save_name) {
24
33
echo ('# keep results in current workspace\n');
25
echo (save_name + ' <<- unidim.res\n');
34
echo ('.GlobalEnv$' + save_name + ' <- unidim.res\n');