tristanz / OpenIRT (http://people.fas.harvard.edu/~tzajonc/openirt.html)

Bayesian and Maximum Likelihood Estimation of Item Response Theory (IRT) Models

Clone this repository (size: 589.9 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/tristanz/openirt
commit 28: 788dc25533c0
parent 27: 604a2525a135
branch: default
Dos2Unix commands
Tristan Zajonc / tristanz
8 months ago

Changed (Δ283 bytes):

raw changeset »

Stata/openirt.ado (8 lines added, 2 lines removed)

Stata/openirt.pkg (3 lines added, 0 lines removed)

Stata/openirt.sthlp (1 lines added, 0 lines removed)

src/scythestat/matrix.h (1 lines added, 1 lines removed)

Up to file-list Stata/openirt.ado:

@@ -53,7 +53,10 @@ program openirt
53
53
	qui gen `group' = 1
54
54
	qui outsheet id `group' `theta' `item_prefix'* using `response_file', replace delim(" ") noquote nolabel nonames
55
55
	* type `response_file'
56
56
	if("`c(os)'"=="Windows") {
57
		qui findfile DOS2UNIX.EXE
58
		! `r(fn)' `response_file'
59
	}
57
60
	* Write out parameter data
58
61
	display as text "Setting up parameter data..."
59
62
	clear
@@ -109,7 +112,10 @@ program openirt
109
112
	sort id
110
113
	isid id
111
114
	qui outsheet id type numcat a b c d1 d2 d3 d4 using `item_file', replace delim(" ") noquote nolabel nonames
112
115
	if("`c(os)'"=="Windows") {
116
		qui findfile DOS2UNIX.EXE
117
		! `r(fn)' `item_file'
118
	}
113
119
	* Run estimation routine from shell
114
120
	qui findfile openirt.exe
115
121
	local execfile `r(fn)'

Up to file-list Stata/openirt.pkg:

@@ -20,6 +20,9 @@ f openirt.sthlp
20
20
G WIN	OpenIRT.exe	openirt.exe
21
21
G WIN64A	OpenIRT.exe	openirt.exe
22
22
G WIN64I	OpenIRT.exe	openirt.exe
23
G WIN	DOS2UNIX.EXE	DOS2UNIX.EXE
24
G WIN64A	DOS2UNIX.EXE	DOS2UNIX.EXE
25
G WIN64I	DOS2UNIX.EXE	DOS2UNIX.EXE
23
26
G MAC	openirt_osx	openirt.exe
24
27
G MACINTEL	openirt_osx	openirt.exe
25
28
G MACINTEL64	openirt_osx	openirt.exe

Up to file-list Stata/openirt.sthlp:

@@ -145,6 +145,7 @@ For multiple tests forms, each row (unit
145
145
146
146
{phang}Rescale to TIMSS scale (mu=500 sd=100), see TIMSS 1999.{p_end}
147
147
{phang2}{cmd:. foreach x of varlist theta_eap theta_mle theta_pv1 theta_pv2 theta_pv3 theta_pv4 theta_pv5 {	replace `x' = `x'*100 + 500 } }{p_end}
148
148
149
{title:References}
149
150
150
151
{phang}

Up to file-list src/scythestat/matrix.h:

@@ -1225,7 +1225,7 @@ namespace scythe {
1225
1225
						}
1226
1226
			    } while (c != EOF);
1227
1227
			    fclose (pFile);
1228
					
1228
					cout << 
1229
1229
          while (std::getline(file, row, delim)) {
1230
1230
            std::vector<T_type> column;
1231
1231
            std::istringstream rowstream(row);