Closed gravesti closed 6 months ago
@gravesti I think this looks great! I have two questions.
I(age^2)
in the model formula or instead giving the user access to the simulatd data to make their own changes, eg:baseline_obj <- sim_baseline(
sample_size = c(trt_int = 100, ctrl_int = 50, ctrl_ext = 200),
covariates = list(correlated_covs, indep_covs)
) %>%
add_vars(age_2 = age*age)
Good questions @mattsecrest
sim_baseline()
would be a data.frame
or an object that can generate a data.frame. Are you thinking about generating N datasets with the same parameters, or with different ones? add_vars
. I'd already planned transform()
for creating eg binary variables. Maybe it's not much different. I'm wary of doing NSE, so let's see how it can be implemented easily.I'd like at least to get the correlated data simulation set up, then we can build this stuff on top.
Feature description
Functions to simulate data as in psborrow
Code of Conduct
Contribution Guidelines