tests/testthat/_snaps/bootci.md

Upper & lower confidence interval does not contain NA

Code
  int_pctl(bt_resamples, res)
Condition
  Warning:
  Recommend at least 1000 non-missing bootstrap resamples for term `mean`.
  Error in `pctl_single()`:
  ! All statistics have missing values..
Code
  int_t(bt_resamples, res)
Condition
  Warning:
  Recommend at least 500 non-missing bootstrap resamples for term `mean`.
  Error in `t_single()`:
  ! All statistics have missing values.
Code
  int_bca(bt_resamples, res, .fn = bad_stats)
Condition
  Warning:
  Recommend at least 1000 non-missing bootstrap resamples for term `mean`.
  Error in `bca_calc()`:
  ! All statistics have missing values.

regression intervals

Code
  skip_if(new_rng_snapshots)
  set.seed(123)
  int_2 <- reg_intervals(mpg ~ disp + wt, data = mtcars, filter = term == "wt",
  model_fn = "glm", keep_reps = TRUE)
  int_2
Output
  # A tibble: 1 x 7
    term  .lower .estimate .upper .alpha .method          .replicates
    <chr>  <dbl>     <dbl>  <dbl>  <dbl> <chr>     <list<tibble[,2]>>
  1 wt     -5.62     -3.46 -0.955   0.05 student-t        [1,001 x 2]


Try the rsample package in your browser

Any scripts or data that you put into this service are public.

rsample documentation built on Aug. 23, 2023, 5:08 p.m.