values {bayesbr}R Documentation

Values of a Posteriori Distribution

Description

A function that uses the values returned from the sampling function of RStan and returns the parameter chain of the posterior distribution, the parameters can be beta, gamma, theta or zeta.

Usage

values(
  type = c("beta", "gamma", "theta", "zeta", "tau_delta", "tau_xi", "xi", "delta"),
  obj,
  iter,
  warmup,
  n,
  par
)

Arguments

type

Characters indicating which values will be returned by the function

obj

containing the data returned from the sampling function of the Rstan package. This type of object is used because it returns the values of the posterior distribution of the model.

iter

A positive integer specifying the number of iterations for each chain (including warmup).

warmup

A positive integer specifying the number of iterations that will be in the warm-up period.

n

The number of observations of the model's variable response.

par

A number containing the number of parameters for theta or zeta. If type is equal to beta or theta par is similar to p (number of parameters for theta), otherwise even is similar to q (number of parameters for zeta). When type is equal to 'delta', 'xi', 'tau_xi', or 'tau_delta' the par variable verify spatial effect in adjusted model.

Details

The function values returns the parameter of interest by taking the data returned by the Stan function excluding the warmup period data. All data returned is in the format of 5 decimal places.

Value

A list containing the values according to the type argument, the values are returned excluding the warmups.

See Also

summary_mean,summary_precision,model.bayesbr


[Package bayesbr version 0.0.1.0 Index]