3
function preprocess () {
6
echo (' require(eRm)\n');
10
function printout () {
20
function doPrintout (final) {
26
inp_items = getValue("inp_items");
27
spin_abilfrom = getValue("spin_abilfrom");
28
spin_abilto = getValue("spin_abilto");
29
spin_probfrom = getValue("spin_probfrom");
30
spin_probto = getValue("spin_probto");
31
annotation = getValue("annotation");
32
chk_ask = getValue("chk_ask");
33
chk_mplot = getValue("chk_mplot");
36
plot_options = getValue("plotoptions.code.printout");
37
plot_ops_main = getValue("plotoptions.main");
38
plot_ops_type = getValue("plotoptions.pointtype");
39
plot_ops_xlab = getValue("plotoptions.xlab");
40
plot_ops_ylab = getValue("plotoptions.ylab");
49
inp_items = str_replace("-",":",inp_items);
50
arr_items = split('[ ;]', inp_items);
51
options[] = "item.subset=c("+join(",", arr_items)+")"; }
52
if(chk_mplot == "mplot")
53
options[] = "mplot=TRUE" ;
55
options[] = "ask=FALSE" ;
59
if((spin_abilfrom != "-4" || spin_abilto != "4") && spin_abilfrom < spin_abilto)
60
options[] = "xlim=c("+round(spin_abilfrom,2)+","+round(spin_abilto,2)+")" ;
61
if((spin_probfrom != "0" || spin_probto != "1") && spin_probfrom < spin_probto)
62
options[] = "ylim=c("+round(spin_probfrom,2)+","+round(spin_probto,2)+")" ;
64
if(annotation == "plain")
65
options[] = "legpos=FALSE" ;
68
echo ('rk.header("Partial credit model plot")\n');
70
echo ('rk.graph.on()\n');
75
echo ('try(plotICC(' + getValue("x"));
76
if(options) echo (", "+join(", ", options));
77
if(plot_options) echo (plot_options);
80
echo ('rk.graph.off()\n');