postb_RVB1_b1: Sample from posterior under RVB1

Description Usage Arguments Value

View source: R/postb_RVB1.R

Description

Sample from posterior under RVB1

Usage

1
postb_RVB1_b1(RVB, y, X, Z, etahat, N, L, model, m = 1)

Arguments

RVB

List. Output from Alg_RVB1

y

List. Responses per cluster

X

List. Covariates per cluster for fixed effects

Z

List. Covariates per cluster for random effects#'

etahat

List. Estimate of canonical parameter about which to approximate

N

Integer. Sample size

L

Integer. Number of clusters

model

Character. Either "poisson" or "binomial"

m

Positive integer. Number of trials in binomial. If poisson, keep as m = 1.

Value

Matrix of posterior samples


hrnasif/rvb documentation built on Dec. 20, 2021, 4:49 p.m.