Constant (#10)
Finalised the testing structure for models with single and multiple individuals, using the constant growth model as the test case.
- Generating a dataset to be loaded with the model in the fixtures.
- Running the chosen model on the first individual in the simulated data and test that the parameter estimate converges to a reasonable value (with 0.1 of the true value)
- Running the chosen model on multiple individuals and tests whether the output samples are of the right size for the number of chains, iterations, and parameters.
* Notation (#5)
* Updated notation and function structure in the multi individual constant model file for consistency. Updated rmot_run, rmot_models to reflect the changes.
* Removed old constant stan file and cleared out references to it in stanmodels.R, rmot.rmd.
* Updated ignore to exclude compiled binaries.
* Cleared out .o and .so files.
* Added develop branch as a trigger for PR
---------
Co-authored-by: Fonti Kar <[email protected]>
* Added single ind const model, updated rmot_models, rmot_run, rmot vignette. Need to do test files yet.
* Updated the single individual constant model stan file and the testing code.
* Added some comments to the model testing script.
* Expending tests: testing run
* Reorganise if statements
* Rename file to linear
* Added unit testing of model output for linear data.
* Re-added testing structure.
* Found problem with unit testing for const model outputs: object y_single/y_multi in global environment not being seen within rmot_assign_data function.
* Added internal testing data so no data is created within test_that() functions, y_single and y_multi are not evaluated globally #1
* Added internal testing data so no data is created within test_that() functions, y_single and y_multi are not evaluated globally #1
* Skip snapshots on CI
* Updated snaps
* Removed snaps as a testing framework and using expect_equal #1
* Removed skip_on_ci #1
* Updating roxygen version and package doc
* Updated code to generate testing data
* Moved helper code in generating fake data, removed internal testing data
* Updated rmot_assign and tests passing I think
* Completed testing workflow
* Added filepath to saving rds and updated TO DO in assign_data
* Set tolerance
* Updated version for checkout
* Added constant data generation and tests based on model output summary for single and multiple individuals. Tests all complete dynamically and when run in the testing console.
* Init comit for constant branch
* Tess helper funcs
* Regenerate test data using stan seed method
* using rstan::extract instead of summary
* Added constant as trigger
* Moved unique code back to make_constant.R
* Changed test data generation and single- and multi-individual testing structures for constant model.
* Fixed linear regression model testing.
* Resolving issues raised in pull request review: changed the set-up of the constant model and removed reference to the constant branch from R-CMD-checn.yaml.
---------
Co-authored-by: Fonti Kar <[email protected]>
Co-authored-by: Daniel Falster <[email protected]>