Description Usage Arguments Value Author(s) See Also Examples
Extracts the estimated parameters and sorts them based on their estimated values
1 |
ordBTL |
a fitted model returned by |
decreasing |
logical. Should the sort be increasing or decreasing? |
prefix |
(optional) a character that is included in the names of the parameters; only the parameters are returned that include this character ( |
reference |
(optional) a character specifying the reference object. |
matrix containing the parameter estimates.
Giuseppe Casalicchio
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Get the CEMS data and generate design matrix
example(wide2long, package="ordBTL", echo=FALSE)
des1 <- design(CEMSlong, var1="object1", var2="object2",
use.vars="Y", reference="Stockholm")
# Fit the adjacent categories model, which corresponds to
# the log-linear BTL model (see Agresti, 1992)
mod1 <- ordBTL(Y~., data=des1, family="acat",
family.control=list(reverse=TRUE))
# Extract all parameter estimates
getRank(mod1)
# Extract all parameter estimates and add parameter for
# reference object (which is set to zero)
getRank(mod1, reference="GAMMA.Stockholm")
# Extract only parameter estimates that include the
# string "Intercept"
getRank(mod1, prefix="Intercept")
# Extract only parameter estimates that include the
# string "GAMMA" (which will be the object parameters)
getRank(mod1, prefix="GAMMA")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.