Description Usage Arguments Value Author(s) Examples
summary.gbp
prepares a summary of estimation result saved in the object defined as "gbp" class creating "summary.gbp" class
1 2 |
object |
a resultant object of |
... |
further arguments passed to other methods. |
summary.gbp
prepares below contents:
main |
a table to be displayed by |
sec.var |
a vector containing an estimation result of the second-level variance component. |
reg |
a vector composed of a summary of regression fit (if fitted). |
Hyungsuk Tak, Joseph Kelly, and Carl Morris
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | data(hospital)
z <- hospital$d
n <- hospital$n
y <- hospital$y
se <- hospital$se
###################################################################################
# We do not have any covariates and do not know a mean of the prior distribution. #
###################################################################################
###############################################################
# Gaussian Regression Interactive Multilevel Modeling (GRIMM) #
###############################################################
g <- gbp(y, se, model = "gaussian")
summary(g)
###############################################################
# Binomial Regression Interactive Multilevel Modeling (BRIMM) #
###############################################################
b <- gbp(z, n, model = "binomial")
summary(b)
##############################################################
# Poisson Regression Interactive Multilevel Modeling (PRIMM) #
##############################################################
p <- gbp(z, n, mean.PriorDist = 0.03, model = "poisson")
summary(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.