Skip to content

Commit

Permalink
lengthened jointModel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abigailkeller committed Apr 25, 2024
1 parent df64461 commit e72c870
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ knitr::opts_chunk$set(
<!-- badges: start -->
[![R-CMD-check](https://github.com/abigailkeller/eDNAjoint/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/abigailkeller/eDNAjoint/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/abigailkeller/eDNAjoint/graph/badge.svg?token=AEVR9NSQ9Z)](https://codecov.io/gh/abigailkeller/eDNAjoint)
[![pkgcheck](https://github.com/abigailkeller/eDNAjoint/workflows/pkgcheck/badge.svg)](https://github.com/abigailkeller/eDNAjoint/actions?query=workflow%3Apkgcheck)
<!-- badges: end -->


Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-jointModel.R
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ test_that("jointModel parameter recovery tests work",{
)
# run model
fit1 <- jointModel(data=data, cov=c('var_a','var_b'),
multicore=FALSE, seed = 10, n.chain=1)
multicore=FALSE, seed = 10)
# summary
summary1 <- as.data.frame(rstan::summary(fit1$model,
pars = c('mu','alpha','log_p10'),
Expand Down Expand Up @@ -733,7 +733,7 @@ test_that("jointModel parameter recovery tests work",{
)
# run model
fit2 <- jointModel(data=data, cov=c('var_a','var_b'),
multicore=FALSE, seed = 2, n.chain=1)
multicore=FALSE, seed = 2)
# summary
summary2 <- as.data.frame(rstan::summary(fit2$model,
pars = c('mu','alpha','log_p10'),
Expand Down Expand Up @@ -827,7 +827,7 @@ test_that("jointModel parameter recovery tests work",{
)
# run model
fit_large <- jointModel(data=data, cov=c('var_a','var_b'),
multicore=FALSE, seed = 10, n.chain=1)
multicore=FALSE, seed = 10)
# summary
summary_large <- as.data.frame(rstan::summary(fit_large$model,
pars = 'alpha',
Expand Down

0 comments on commit e72c870

Please sign in to comment.