| summary.gbp {Rgbp} | R Documentation | 
Summarizing Estimation Result
Description
summary.gbp prepares a summary of estimation result saved in the object defined as "gbp" class creating "summary.gbp" class
Usage
## S3 method for class 'gbp'
summary(object, ...)Arguments
| object | a resultant object of  | 
| ... | further arguments passed to other methods. | 
Value
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).  | 
Author(s)
Hyungsuk Tak, Joseph Kelly, and Carl Morris
Examples
  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)
[Package Rgbp version 1.1.4 Index]