Description Arguments Value Author(s) Examples
irt
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 |
Function returns an object ...
Richard Spady
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.