diff --git a/R/example_noise_params_pk.R b/R/example_noise_params_pk.R index a0b00f9e..ac380f40 100644 --- a/R/example_noise_params_pk.R +++ b/R/example_noise_params_pk.R @@ -4,7 +4,7 @@ #' for examples and testing. #' #' @format ## `example_noise_params_pk` -#' A `curve_params` object (from [as_curve()]) with 4 rows and 7 columns: +#' A `curve_params` object (from [as_curve_params()]) with 4 rows and 7 columns: #' \describe{ #' \item{antigen_iso}{which antigen and isotype are being measured #' (data is in long format)} diff --git a/R/example_typhoid_curves_nostrat.R b/R/example_typhoid_curves_nostrat.R index d70295fb..455d6021 100644 --- a/R/example_typhoid_curves_nostrat.R +++ b/R/example_typhoid_curves_nostrat.R @@ -3,7 +3,7 @@ #' A subset of data from the SEES study, for examples and testing. #' #' @format ## `typhoid_curves_nostrat_100` -#' A `curve_params` object (from [as_curve()]) with 500 rows and 7 columns: +#' A `curve_params` object (from [as_curve_params()]) with 500 rows and 7 columns: #' \describe{ #' \item{antigen_iso}{which antigen and isotype are being measured #' (data is in long format)} diff --git a/man/example_noise_params_pk.Rd b/man/example_noise_params_pk.Rd index cd03f57e..d19565f4 100644 --- a/man/example_noise_params_pk.Rd +++ b/man/example_noise_params_pk.Rd @@ -7,7 +7,7 @@ \format{ \subsection{\code{example_noise_params_pk}}{ -A \code{curve_params} object (from \code{\link[=as_curve]{as_curve()}}) with 4 rows and 7 columns: +A \code{curve_params} object (from \code{\link[=as_curve_params]{as_curve_params()}}) with 4 rows and 7 columns: \describe{ \item{antigen_iso}{which antigen and isotype are being measured (data is in long format)} diff --git a/man/typhoid_curves_nostrat_100.Rd b/man/typhoid_curves_nostrat_100.Rd index ca976286..97f2ca09 100644 --- a/man/typhoid_curves_nostrat_100.Rd +++ b/man/typhoid_curves_nostrat_100.Rd @@ -7,7 +7,7 @@ \format{ \subsection{\code{typhoid_curves_nostrat_100}}{ -A \code{curve_params} object (from \code{\link[=as_curve]{as_curve()}}) with 500 rows and 7 columns: +A \code{curve_params} object (from \code{\link[=as_curve_params]{as_curve_params()}}) with 500 rows and 7 columns: \describe{ \item{antigen_iso}{which antigen and isotype are being measured (data is in long format)} diff --git a/tests/testthat/_snaps/est.incidence.by.md b/tests/testthat/_snaps/est.incidence.by.md index 02c06a21..110b0362 100644 --- a/tests/testthat/_snaps/est.incidence.by.md +++ b/tests/testthat/_snaps/est.incidence.by.md @@ -1,4 +1,4 @@ -# est.incidence.by() produces expected results for typhoid data +# `est.incidence.by()` produces consistent results for typhoid data Code typhoid_results diff --git a/tests/testthat/test-est.incidence.by.R b/tests/testthat/test-est.incidence.by.R index 211ec3a5..73bddbd9 100644 --- a/tests/testthat/test-est.incidence.by.R +++ b/tests/testthat/test-est.incidence.by.R @@ -36,10 +36,10 @@ test_that( ) -test_that("est.incidence.by() produces expected results for typhoid data", +test_that("`est.incidence.by()` produces consistent results for typhoid data", { typhoid_results <- est.incidence.by( - strata = c("catchment"), + strata = "catchment", pop_data = sees_pop_data_pk_100_standardized, curve_param = typhoid_curves_nostrat_100, curve_strata_varnames = NULL,