Learn R Programming

IceCast (version 2.1.0)

calc_pars: Compute Parameters Estimates

Description

Compute parameter estimates for the contour model using MCMC output from fit_cont_pars

Usage

calc_pars(res_r, burn_in, w)

Arguments

res_r

output of MCMC run from function fit_cont_pars for one region

burn_in

number of iterations to discard as burn-in. This is the number before thinning. Value will be divided by w.

w

integer specifying the thinning used. Samples from every w-th iteration are stored.

Value

List of a list of parameters for each region. Each list contains two elements, muEst and sigmaEst. These which give estimates for the mu and sigma parameters used to generate contours.

Examples

Run this code
# NOT RUN {
y_obs <- y_obs(maps = obs_maps, reg_info)
res <- fit_cont_pars(r = 3, n_iter = 1000, y_obs, reg_info)
calc_pars(res, burn_in = 100, w = res$w)
# }

Run the code above in your browser using DataLab