The worfklow of this directory is as follows:
-
Make a list of host objects using the
make_host_data_structure.R
file. This code will preserve the defining features of individuals in the dataset (the initial titer, minimum observed titer, age, birth-date, first visit date, ending visit date, etc.), but it will allow you to simulate many observations for each host. Therefore, the model simulations will sample hosts closely and provide a better approximation of the latent dynamics. -
Convert the host data list from step 1 to a POMP object using the
data_structure_to_pomp_object_structure.R
file. -
Simulate using the
simulate_data.R
file. -
Make figures using the
make_output_plots.R
file. Figures will appear in theOutput_plots
subdirectory.