iCARH.params: Summarize and return model parameters

Description Usage Arguments Value Functions Examples

View source: R/summary-method.R

Description

Group of functions to summarize and return model parameters of interest

Usage

1
2
3
4
5
6
7
8
9
iCARH.params(
  fit,
  pars = c("theta", "alpha", "beta", "phi"),
  path.names = NULL,
  prob = 0.95,
  use_cache = TRUE,
  digits = 2,
  ...
)

Arguments

fit

Object returned by iCARH.model

pars

Parameters of interest ("theta","alpha","beta","phi"). All parameters by default.

path.names

Specify pathway names.

prob

Confidence level. Defaults to 0.95.

use_cache

passed to stan summary method.

digits

The number of significant digits for printing out the summary; defaults to 2. The effective sample size is always rounded to integers.

...

not used currently

Value

contain summaries for all chains. Included in the summaries are means, standard deviations (Est.Error), effective sample sizes (Eff.Sample), and split Rhats. Monte Carlo standard errors (MC.Error) are also reported.

Functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data.sim = iCARH.simulate(4, 10, 14, 8, 2, path.probs=0.3, Zgroupeff=c(0,4),
beta.val=c(1,-1,0.5, -0.5))
XX = data.sim$XX
Y = data.sim$Y
Z = data.sim$Z
pathways = data.sim$pathways

rstan_options(auto_write = TRUE)
options(mc.cores = 2)
fit = iCARH.model(XX, Y, Z, groups=rep(c(0,1), each=5), pathways, 
control = list(adapt_delta = 0.99, max_treedepth=10), iter = 2, chains = 2)
if(!is.null(fit$icarh))
iCARH.params(fit)

iCARH documentation built on Aug. 28, 2020, 1:10 a.m.