Description Usage Arguments Value See Also Examples
View source: R/get_banocc_output.R
Takes a model fit from BAnOCC, evaluates convergence and generates appropriate convergence metrics and inference
| 1 2 3 | get_banocc_output(banoccfit, conf_alpha = 0.05, get_min_width = FALSE,
  calc_snc = TRUE, eval_convergence = TRUE, verbose = FALSE,
  num_level = 0)
 | 
| banoccfit | Either a  | 
| conf_alpha | The percentage of the posterior density outside the
credible interval. That is, a  | 
| get_min_width | A boolean value: should the minimum CI width that includes zero be calculated? | 
| calc_snc | Boolean: should the scaled neighborhood criterion be calculated? | 
| eval_convergence | Boolean: if 'TRUE', convergence will be evaluated using the Rhat statistic, and the fit output (estimates, credible intervals, etc.) will be missing if this statistic does not indicate convergence. | 
| verbose | Print informative statements as the function executes? | 
| num_level | The number of indentations to add to the output when
 | 
Returns a named list with the following elements:
The 1-conf_alpha * 100% credible intervals
The correlation estimates, which are the marginal posterior medians
Only present if the get_min_width
argument is TRUE. The minimum CI width that includes zero for
each correlation.
Only present if the calc_snc argument is
TRUE. The scaled neighborhood criterion for each correlation.
The stanfit object returned by the call to
run_banocc.
Only present if the banoccfit argument is
specified as the output of a call to run_banocc. It will be
missing if banoccfit is specified as a stanfit object.
vignette("banocc-vignette") for more examples.
| 1 2 3 4 5 6 7 8 | data(compositions_null)
  ## Not run: 
    compiled_banocc_model <- rstan::stan_model(model_code=banocc_model)
    b_fit <- run_banocc(C=compositions_null,
                            compiled_banocc_model=compiled_banocc_model)
    b_output <- get_banocc_output(banoccfit=b_fit)
  
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.