Learn R Programming

dgo (version 0.2.15)

show,dgo_fit-method: print method for dgo_fit-class objects

Description

print method for dgo_fit-class objects

get_elapsed_time: extract chain run times from dgo_fit-class objects

summary method for dgo_fit-class objects

summarize method for dgo_fit-class objects

as.data.frame method for dgo_fit-class objects

rhats: extract split R-hats from dgo_fit-class objects

Usage

# S4 method for dgo_fit
show(object)

# S4 method for dgo_fit print(x, ...)

print.dgo_fit(x, ...)

# S4 method for dgo_fit get_elapsed_time(object, ...)

# S4 method for dgo_fit summary(object, ..., verbose = FALSE)

# S4 method for dgo_fit get_posterior_mean(object, pars = "theta_bar", ...)

summarize(x, ...)

# S4 method for dgo_fit summarize(x, pars = "theta_bar", funs = c("mean", "sd", "median", "q_025", "q_975"))

# S3 method for dgo_fit as.data.frame(x, ..., pars = "theta_bar", keep.rownames = FALSE)

rhats(x, ...)

# S4 method for dgo_fit rhats(x, pars = "theta_bar")

Arguments

object

A dgo_fit-class object

x

A dgo_fit-class object

...

Further arguments to stanfit-class methods.

verbose

Whether to show the full output from the rstan method.

pars

Parameter name(s)

funs

Quoted names of summary functions. `q_025` is accepted as shorthand for `function(x) quantile(x, .025)`, and similarly `q_975`.

keep.rownames

Whether to retain original parameter names with numeric indexes, as output from RStan.

Value

A table giving split R-hats for model parameters

Examples

Run this code
# NOT RUN {
data(toy_dgirtfit)
summarize(toy_dgirtfit)
data(toy_dgirtfit)
# access posterior samples
as.data.frame(toy_dgirtfit, pars = 'theta_bar')
data(toy_dgirtfit)
rhats(toy_dgirtfit)
# }

Run the code above in your browser using DataLab