- formula
an object of class "formula." See "Details" for
more information, including specification of treatment
data indicators.
- data
a data frame containing the current data variables in the model.
A column named treatment
must be present; treatment
must
be binary and indicate treatment group vs. control group.
- data0
a data frame containing the historical data variables in the model.
The column labels of data and data0 must match.
- prior_treatment_effect
scalar. The historical adjusted treatment effect.
If left NULL
, value is estimated from the historical data.
- prior_control_effect
scalar. The historical adjusted control effect.
If left NULL
, value is estimated from the historical data.
- prior_treatment_sd
scalar. The standard deviation of the historical
adjusted treatment effect. If left NULL
, value is estimated from
the historical data.
- prior_control_sd
scalar. The standard deviation of the historical
adjusted control effect. If left NULL
, value is estimated from
the historical data.
- prior_covariate_effect
vector. The prior mean(s) of the covariate
effect(s). Default value is zero. If a single value is input, the
the scalar is repeated to the length of the input covariates. Otherwise,
care must be taken to ensure the length of the input matches the number of
covariates.
- prior_covariate_sd
vector. The prior standard deviation(s) of the
covariate effect(s). Default value is 1e4. If a single value is input, the
the scalar is repeated to the length of the input covariates. Otherwise,
care must be taken to ensure the length of the input matches the number of
covariates.
- number_mcmc_alpha
scalar. Number of Monte Carlo
simulations for estimating the historical data weight. Default is 5000.
- number_mcmc_beta
scalar. Number of Monte Carlo simulations for
estimating beta, the vector of regression coefficients. Default is 10000.
- discount_function
character. Specify the discount function to use.
Currently supports weibull
, scaledweibull
, and
identity
. The discount function scaledweibull
scales
the output of the Weibull CDF to have a max value of 1. The identity
discount function uses the posterior probability directly as the discount
weight. Default value is "identity
".
- alpha_max
scalar. Maximum weight the discount function can apply.
Default is 1. Users may specify a vector of two values where the first
value is used to weight the historical treatment group and
the second value is used to weight the historical control group.
- fix_alpha
logical. Fix alpha at alpha_max? Default value is FALSE.
- weibull_scale
scalar. Scale parameter of the Weibull discount function
used to compute alpha, the weight parameter of the historical data. Default
value is 0.135. Users may specify a vector of two
values where the first value is used to estimate the weight of the
historical treatment group and the second value is used to estimate the
weight of the historical control group.
Not used when discount_function
= "identity".
- weibull_shape
scalar. Shape parameter of the Weibull discount function
used to compute alpha, the weight parameter of the historical data. Default
value is 3. Users may specify a vector of two values
where the first value is used to estimate the weight of the historical
treatment group and the second value is used to estimate the weight of the
historical control group. Not used when discount_function
= "identity".
- method
character. Analysis method with respect to estimation of the weight
paramter alpha. Default method "mc
" estimates alpha for each
Monte Carlo iteration. Alternate value "fixed
" estimates alpha once and
holds it fixed throughout the analysis. See the the bdplm
vignette
vignette("bdplm-vignette", package="bayesDP")
for more details.