statisfactions / simpr

Tidyverse-friendly simulations and power analysis
42 stars 6 forks source link

fit() should remove per_sims() #65

Closed statisfactions closed 2 years ago

statisfactions commented 2 years ago

fit should remove per_sims mode, little need for per-sims after already fitting!

suppressPackageStartupMessages(library(simpr))

specify(a = ~ rnorm(6)) %>% 
  generate(1) %>% 
  per_sim() %>% 
  fit(lm = ~ lm(a ~ 1)) %>% 
  select(.sim_id)
#> Error: Can't subset columns that don't exist.
#> x Column `.sim_id` doesn't exist.

Created on 2022-01-08 by the reprex package (v2.0.1)

statisfactions commented 2 years ago

fixed with 6b97c418df6df40b4aa803074c183f77efbc57bf