~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/plugins/analysis/irt/polytomous/par_est_lpcm.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(eRm)\n');
 
7
}
 
8
 
 
9
function calculate () {
 
10
  
 
11
  mpoints      = getValue("mpoints");
 
12
  groups       = getValue("groups");
 
13
  group_vec    = getValue("group_vec");
 
14
  design       = getValue("design");
 
15
  design_mtx   = getValue("design_mtx");
 
16
  etastart     = getValue("etastart");
 
17
  etastart_vec = getValue("etastart_vec");
 
18
  stderr       = getValue("stderr");
 
19
  sumnull      = getValue("sumnull");
 
20
 
 
21
echo ('estimates.lpcm <<- LPCM(' + getValue("x"));
 
22
                  
 
23
                  if(design == "matrix") echo (", W="+design_mtx);
 
24
                  if(mpoints > 1) echo (", mpoints="+mpoints);
 
25
                  if(groups == "contrasts") echo (", groupvec="+group_vec);
 
26
                  if(stderr != "se") echo (", se=FALSE");
 
27
                  if(sumnull != "sum0") echo (", sum0=FALSE");
 
28
                  if(etastart == "startval") echo (", etaStart="+etastart_vec);
 
29
 echo (')\n');
 
30
}
 
31
 
 
32
function printout () {
 
33
echo ('rk.header ("LPCM  parameter estimation")\n');
 
34
echo ('rk.print (estimates.lpcm)\n');
 
35
}