Learn R Programming

R2GUESS (version 2.0)

boxplotbeta: Draws boxplots of the posterior distribution of regression coefficient(s) for a given predictor

Description

The boxplot.beta function draws a boxplot representation of the posterior distribution of regression coefficient(s) for a user-defined predictor. The function requires a preliminary run of sample.beta.

Usage

boxplotbeta(x, beta, variable)

Arguments

x

an object of class ESS

beta

a list produced by sample.beta representing the regression coefficient of the predictor of interest with respect to the outcome(s) in the response matrix.

variable

name of the predictor of interest, or its position in dataX.

Value

Returns a matrix containing samples (iterations in rows) of the regression coefficients (q columns) corresponding to the variable specified by the argument variable with respect to all outcomes.

See Also

sample.beta