fabricatr
fabricatr copied to clipboard
fabricatr: Imagine Your Data Before You Collect It
this warning seems to appear when the second level N is determined by the first level *and* there is a potential oucoems cll ``` > fabricate( + A = add_level(N...
Some benchmarking ``` # here we want at least one of each ideo st there aren't random failures in assn 9 draw_ideo
``` > head(fabricate( + N = 1000, + X = matrix(rnorm(3 * N), N))) ID X.1 X.2 X.3 1 0001 -0.05025699 -1.6063950 -0.3198033 2 0002 0.48970821 -0.2233403 -0.1334020 3 0003...
Current CRAN version ``` # Example pre-existing data df = data.frame(x = rnorm(100, 10, 2), y = 1:100) # Works, correctly: fabricate( df, z = x - dplyr::lag(x, 1) )...
A common use case for me is drawing likert POs on the basis of a continuous latent variable. right now, draw_likert returns a factor, so it's clunky to put on...
In #111, @chadhazlett proposed being able to specify a total standard deviation / variance for draw_normal_icc. I implemented this in early May -- in this implementation, the user supplies an...
``` library(DeclareDesign) library(dplyr) # make baseline data individuals_data
It's a pretty key function in `dplyr` that we don't want to conflict with
Designers in the DesignLibrary relying on `draw_normal_icc ()` should allow for to return values when ICC = 0 or 1 without requiring the designer to condition the distribution function on...
``` tau group_by(zero = prob == 0) |> summarize(mean(bin_Z_0)) ``` # should have no 1's in the outcome in control when prob is 0 but it has lots Need to...