-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Using data_in.csv.
library(ODAPbackend)
library(readr)
data_in <- read_csv("~/Downloads/data_in.csv")
expo <- smooth_flexible(
data_in,
variable = "Exposures",
rough_method = "Carrier-Farrag",
fine_method = "auto",
constrain_infants = TRUE,
age_out = "single"
)> library(ODAPbackend)
Loading required package: ggplot2
> library(readr)
>
> data_in <- read_csv("~/Downloads/data_in.csv")
Rows: 88 Columns: 8
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (3): .id_label, Sex, Province
dbl (5): .id, Deaths, Exposures, Age, AgeInt
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
>
> expo <- smooth_flexible(
+ data_in,
+ variable = "Exposures",
+ rough_method = "Carrier-Farrag",
+ fine_method = "auto",
+ constrain_infants = TRUE,
+ age_out = "single"
+ )
Error in `mutate()` at ODAPbackend/R/graduation.R:99:3:
ℹ In argument: `result = map(data, ~group_func(.x))`.
Caused by error in `map()`:
ℹ In index: 1.
Caused by error in `mutate()` at ODAPbackend/R/graduation.R:887:5:
ℹ In argument: `Exposures = smooth_age_5(Value = Exposures, Age = Age,
method = rough_method)`.
Caused by error in `smooth_age_5()`:
! object 'keep_infants' not found
Run `rlang::last_trace()` to see where the error occurred.
Metadata
Metadata
Assignees
Labels
No labels