Skip to content

S4 methods implementation#86

Draft
Tess-LaCoil wants to merge 55 commits intomasterfrom
s4-methods-implementation
Draft

S4 methods implementation#86
Tess-LaCoil wants to merge 55 commits intomasterfrom
s4-methods-implementation

Conversation

@Tess-LaCoil
Copy link
Copy Markdown
Collaborator

Re-structured package to use an S4 object-oriented programming paradigm.

The re-shaped package uses hmde_data_template and hmde_estimates class objects in a refined workflow that requires fewer basic steps to implement the same underlying models. In particular, the hmde_estimates object has a much better structure for preserving information about the stanfit, including runtime and the priors used.

…he hmde_estimates S3 class object. Added element to hmde_estimates object that gives the used prior parameters based on the check_prior_par values output by the stan fit.
…_estimates object. Changed plot_de_pieces and plot_obs_est_inds functions to check for correct class. Changed run function to properly check for correct class of model_template object.
… plotted regardless of the number requested.
…it object as summary info. Updated the print and summary functions to output meta data. Corrected errors in the plot functions and added titles.
…ting for hmde_estimates constructor function.
…dated the data input function for hmde_data_template.
…to not change the class of the returned object.
… class, along with testing for those functions. Updated documentation.
…o that the second one will take obs_data as default, followed by prior_pars.
… hmde_template constructor. Added n_ind parameters to the multi-ind model templates. Added unit testing for each model run.
…f testing for models to reflect new workflow.
…parameter names rather than relying on running hmde_model_pars.
…coevo/hmde into s4-methods-implementation

Merging testing correction.
…es for Rhat extraction, fixed documentation of arguments for show, print, summary, plot in hmde_estimates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant