bdlimlmb: BDLIM-b for linear model

View source: R/bdlimlmb.R

bdlimlmbR Documentation

BDLIM-b for linear model

Description

This estimates the model for a common weight funciton but group specific effects

Usage

bdlimlmb(Y, X, Z, G, B, niter, nburn, nthin, prior)

Arguments

Y

Outcome vector

X

Exposure matrix

Z

Matrix of covariates. An intercept will be added

G

Vector indicating group membership

B

Basis object from build.basis

niter

Number of MCMC iterations

nburn

Number of MCMC iterations to be discarded as burning

nthin

Number of draws taken to obtainone sampl

prior

List with the entries: sigma = a numeric 2-vector with the shape and rate paramters for the pirior in the error precision (1/sigma^2); betavar = the prior variance for beta; and gamma = the prior variance for the covarites. The priors on beta and gamma are iid normal mean zero.

Author(s)

Ander Wilson


AnderWilson/regimes documentation built on Aug. 5, 2023, 8:30 a.m.