best_model_fit: Return Model Fit for Plotting

Description Usage Arguments Value See Also

View source: R/best_model_fit.R

Description

Extracts a given model and refits it, returning the fitted model object.

Usage

1
2
3
best_model_fit(df = NULL, ModelBestFit = NULL, Scheme = NULL,
  Pop = NULL, Cores = NULL, Iterations = 10000, BurnIn = 5000,
  Alpha = 0.99, Treedepth = 10)

Arguments

df

A dataframe of fitted model results

ModelBestFit

A character string identifying the model to refit.

Scheme

A character string identifying which scheme to refit the model for.

Pop

A character string identifying the population to refit the model for.

Cores

Numeric, defaults to the number of cores available minus 1. How many cores to use for the analysis.

Iterations

Numeric, the number of iterations to use for the MCMC sampler. Defaults to 10000.

BurnIn

Numeric, the number of iterations to use for the burn in. Defaults to 5000.

Alpha

Numeric, set the adaptive alpha value for the MCMC. Defaults to 0.99

Treedepth

Numeric, set the maximum tree depth. Defaults to 10.

Value

Fitted model object

See Also

Base_Model


seabbs/DirectEffBCGPolicyChange documentation built on Dec. 14, 2019, 9:24 p.m.