bdlim1_logistic {bdlim} | R Documentation |
Fit the BDLIM model with 1 pattern of modification with logistic regression
Description
Fit the BDLIM model with 1 pattern of modification with logistic regression
Usage
bdlim1_logistic(
y,
exposure,
covars,
group,
id = NULL,
w_free,
b_free,
df,
nits,
nburn = round(nits/2),
nthin = 1
)
Arguments
y |
A vector of binary outcomes |
exposure |
A matrix of exposures with one row for each individual |
covars |
A matrix or data.frame of covariates This should not include the grouping factor (see group below). This may include factor variables. |
group |
A vector of group memberships. This should be a factor variable. |
id |
An optional vector of individual IDs if there are repeated measures or other groupings that a random intercept should be included for. This must be a factor variable. |
w_free |
Logical indicating if the weight functions are shared by all groups (FALSE) or group-specific (TRUE). |
b_free |
Logical indicating if the effect sizes are shared by all groups (FALSE) or group-specific (TRUE). |
df |
Degrees of freedom for the weight functions |
nits |
Number of MCMC iterations. |
nburn |
Number of MCMC iterations to be discarded as burn in. The default is half if the MCMC iterations. This is only used for WAIC in this function but is passed to summary and plot functions and used there. |
nthin |
Thinning factors for the MCMC. This is only used for WAIC in this function but is passed to summary and plot functions and used there. |
Value
A list with posteriors of parameters