irt: irt

Description Arguments Value Author(s) Examples

Description

irt

Arguments

r

is a vector of ordered outcomes

W

is a matrix of characteristics

thstart

starting values

beta

should beta distribution rather than uniform be taken as base density to be tilted

snpdeg

degree

type

type

nqpoints

nqpoints

qrange

qrange

gradtol

gradtol

iterlim

iterlim

Value

Function returns an object ...

Author(s)

Richard Spady

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# -----------------------------------------
# Example 1. 
# Fast by result may not make sense
data(elections)
attach(elections)
Wx <- cbind(age,agesq.01,black,bornagain)
#res <- irt(r=govtakecarewhocant,W=Wx,iterlim=400)
# summary(res)
detach(elections) 

# -----------------------------------------
# Example 2.
# This computation may take a while (10 min or more... )
data(elections)
attach(elections)

Wx <- cbind(age,agesq.01,black,bornagain,blackbornagain,rel.catholic,rel.nonchr, ed.cat1, ed.cat3,ed.cat4,ed.cat5,income.1,income.3,income.4,income.dk,
parent, hispanic,female)
#res <- irt(r=govtakecarewhocant,W=Wx,iterlim=400)
# summary(res)
detach(elections) 

irt documentation built on May 2, 2019, 4:53 p.m.

Related to irt in irt...