"R ltm()"의 두 판 사이의 차이

(새 문서: ==개요== ;R ltm() <syntaxhighlight lang='r' run hideerr> library(ltm) df <- read.csv("https://github.com/jmnote/zdata/raw/master/github.com/drizopoulos/ltm/data/LSAT.csv") model <-...)
 
15번째 줄: 15번째 줄:
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='r' run hideerr>
<syntaxhighlight lang='r' run hideerr>
## Two-factor model with an interaction term
library(ltm)
library(ltm)
df <- read.csv("https://github.com/jmnote/zdata/raw/master/github.com/drizopoulos/ltm/data/WIRS.csv")
df <- read.csv("https://github.com/jmnote/zdata/raw/master/github.com/drizopoulos/ltm/data/WIRS.csv")
21번째 줄: 22번째 줄:
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='r' run hideerr>
<syntaxhighlight lang='r' run hideerr>
## One-factor and a quadratic term
library(ltm)
library(ltm)
df <- read.csv("https://github.com/jmnote/zdata/raw/master/github.com/drizopoulos/ltm/data/Mobility.csv")
df <- read.csv("https://github.com/jmnote/zdata/raw/master/github.com/drizopoulos/ltm/data/Mobility.csv")
27번째 줄: 29번째 줄:
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='r' run hideerr>
<syntaxhighlight lang='r' run hideerr>
## The two-parameter logistic model with 20 quadrature points and 20 EM iterations
library(ltm)
library(ltm)
df <- read.csv("https://github.com/jmnote/zdata/raw/master/github.com/drizopoulos/ltm/data/Abortion.csv")
df <- read.csv("https://github.com/jmnote/zdata/raw/master/github.com/drizopoulos/ltm/data/Abortion.csv")

2021년 10월 1일 (금) 17:57 판

1 개요

R ltm()
library(ltm)
df <- read.csv("https://github.com/jmnote/zdata/raw/master/github.com/drizopoulos/ltm/data/LSAT.csv")
model <- ltm(df ~ z1, IRT.param = TRUE)
coef(model)
library(ltm)
df <- read.csv("https://github.com/jmnote/zdata/raw/master/github.com/drizopoulos/ltm/data/WIRS.csv")
model <- ltm(df ~ z1, constr = rbind(c(1, 1, 1), c(6, 2, -0.5))
coef(model)
## Two-factor model with an interaction term
library(ltm)
df <- read.csv("https://github.com/jmnote/zdata/raw/master/github.com/drizopoulos/ltm/data/WIRS.csv")
model <- ltm(df ~ z1 * z2)
coef(model)
## One-factor and a quadratic term
library(ltm)
df <- read.csv("https://github.com/jmnote/zdata/raw/master/github.com/drizopoulos/ltm/data/Mobility.csv")
model <- ltm(df ~ z1 + I(z1^2))
coef(model)
## The two-parameter logistic model with 20 quadrature points and 20 EM iterations
library(ltm)
df <- read.csv("https://github.com/jmnote/zdata/raw/master/github.com/drizopoulos/ltm/data/Abortion.csv")
model <- ltm(df ~ z1, control = list(GHk = 20, iter.em = 20))
coef(model)

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}