View source: R/bayesianSplineFit.R
Fit a varying coefficient model for longitudinal studies with informative dropout. Uses a Bayesian approach with a spline fit to model the relationship between dropout times and slope
1 2 3 | informativeDropout.bayes.splines(data, ids.var, outcomes.var, groups.var,
covariates.var, times.dropout.var, times.observation.var, dist,
model.options)
|
data |
the data set |
ids.var |
column of the data set containing the participant id |
outcomes.var |
column of the data set containing the outcome variable |
groups.var |
column of the data set indicating treatment group |
covariates.var |
list of columns of the data set containing covariates |
times.dropout.var |
column of the data set containing dropout times |
times.observation.var |
column of the data set containing observation times |
dist |
distribution of the outcome (either "gaussian" or "binary") |
model.options |
the bayes.spines.model.options object (@seealso bayes.spines.model.options) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.