This document provides a guide to how families are treated in flocker
through
the lens of everything that needs to happen in order to add a new family.
make_flocker_data()
, modify make_flocker_data()
to
enable this output. Check with flocker
package maintainers before doing this,
as complicated new options might be better suited to getting their own, separate
formatting functions rather than adding more arguments and complexity to
make_flocker_data()
.make_flocker_data()
, name the new output type and add to
flocker_data_output_types()
in utils.R. Update flocker_data_type_lookup()
.
If appropriate, add to rep_constant_types()
, threading_types()
, or
multi_types()
.make_flocker_data()
,
add them to flocker_col_names()
in utils.R.make_flocker_data()
, name the
input format and add to flocker_data_input_types()
in utils.R. flocker_model_types()
and to
params_by_type()
. There should be a separate entry for every family.flock_()
to handle the new family. flock_()
assigns good distinguishing attributes to the
outputted flocker_fit object, identifying the important aspects of the family. flock_()
are required, modify all functions in
flock.R to pass the new arguments properly.validate_flock_params()
and any relevant helper
functions beginning with validate_
to handle new arguments in flock()
or new
options in the arguments to flock()
.fitted_flocker()
in fitted_flocker.R:fitted_flocker
conforms to the shape of the
data passed to make_flocker_data(obs = ...)
. That is, fitted_flocker()
should
always return linear predictors shaped like obs
, with posterior iterations
and/or summaries stacked along the $n+1$th dimension.get_Z()
in get_Z.Rsimulate_flocker_data()
in simulate_flocker_data.R to enable
accurate simulation from the new model.simulate_flocker_data()
(e.g. if illustrating the family's capabilities
requires more/different covariates than simulate_flocker_data()
provides),
create an example dataset in the data folder, put the script to generate the
dataset in data.R, and document appropriately.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.