~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2009-10-26 14:30:00 UTC
  • mfrom: (1.1.13 upstream) (6.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20091026143000-wzwt6cryjnwce23k
Tags: 0.5.2-1
* new upstream release
  closes: #551306 (added support for the new dynamic help system)
* Add "DM-Upload-Allowed: yes" in control
* bump standards version to 3.8.3 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// globals
 
2
 
 
3
function preprocess () {
 
4
  
 
5
 
 
6
echo ('  require(ltm)\n');
 
7
}
 
8
 
 
9
function calculate () {
 
10
  
 
11
  spin_samples    = getValue("spin_samples");
 
12
 
 
13
echo ('GoFRasch.res <- GoF.rasch(' + getValue("x"));
 
14
                  
 
15
                  if(spin_samples != "49") echo (", B="+spin_samples);
 
16
 echo (')\n');
 
17
}
 
18
 
 
19
function printout () {
 
20
echo ('rk.header ("Goodness of Fit for Rasch Models (' + getValue("x") + ')")\n');
 
21
echo ('rk.print (GoFRasch.res)\n');
 
22
}