~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/plugins/analysis/irt/tests/ltm_unidimensional.js

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2010-10-04 14:30:00 UTC
  • mfrom: (12.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101004143000-qey73molmxxwy4w6
Tags: 0.5.4-1
* new upstream release
* bump standards version to 3.9.1 (no changes needed)
* no more need to remove svncopy.sh-script in rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
}
15
15
 
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");
19
19
 
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');
26
35
        }
27
36
}