You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+85-5Lines changed: 85 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
-
2
1
# IrtRuby
3
2
4
-
IrtRuby is a Ruby gem that provides implementations of the Rasch model, the Two-Parameter model, and the Three-Parameter model for Item Response Theory (IRT). It allows you to estimate the abilities of individuals and the difficultiesof items based on their responses to a set of items.
3
+
IrtRuby is a Ruby gem that provides implementations of the **Rasch model**, the **Two-Parameter (2PL)**model, and the **Three-Parameter (3PL)**model for Item Response Theory (IRT). It allows you to estimate the **abilities** of individuals and the **difficulties** (and optionally **discriminations** and **guessing** parameters) of items based on their responses.
5
4
6
5
## Installation
7
6
@@ -25,14 +24,18 @@ gem install irt_ruby
25
24
26
25
## Usage
27
26
28
-
Here's an example of how to use the IrtRuby gem:
27
+
Here's a quick example using the Rasch model:
29
28
30
29
```ruby
31
30
require'irt_ruby'
32
31
require'matrix'
33
32
34
33
# Create a sample response matrix
35
-
data =Matrix[[1, 0, 1], [0, 1, 0], [1, 1, 1]]
34
+
data =Matrix[
35
+
[1, 0, 1],
36
+
[0, 1, 0],
37
+
[1, 1, 1]
38
+
]
36
39
37
40
# Initialize the Rasch model with the response data
38
41
model =IrtRuby::RaschModel.new(data)
@@ -41,9 +44,86 @@ model = IrtRuby::RaschModel.new(data)
0 commit comments