Skip to content

Commit

Permalink
working on supplemental walkthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Kain authored and Morgan Kain committed Jul 3, 2024
1 parent 0972682 commit c1e6207
Show file tree
Hide file tree
Showing 7 changed files with 11,592 additions and 5 deletions.
6 changes: 3 additions & 3 deletions R/fitting_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ group_via_3sd <- function(simulated_data, param_sets, groupings) {

x %>% mutate(
assigned_group_robust = ifelse(
mfi > neg_set_a["mean_neg"] + 3 * neg_set_a["sd_neg"]
mfi > (neg_set_a["mean_neg"] + 3 * neg_set_a["sd_neg"])
, 2
, 1
)
, assigned_group_control = ifelse(
mfi > neg_set_b["mean_neg"] + 3 * neg_set_b["sd_neg"]
mfi > (neg_set_b["mean_neg"] + 3 * neg_set_b["sd_neg"])
, 2
, 1
)
Expand Down Expand Up @@ -97,7 +97,7 @@ group_via_3sd_alt <- function(simulated_data, param_sets, groupings) {

x.t <- x %>% mutate(
assigned_group_sample_mfi = ifelse(
mfi > neg_set["mean_neg"] + 3 * neg_set["sd_neg"]
mfi > (neg_set["mean_neg"] + 3 * neg_set["sd_neg"])
, 2
, 1
)
Expand Down
2 changes: 1 addition & 1 deletion _targets.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ setup_targets <- tar_plan(
## : One categorical predictor affecting within-group values
## 2: One categorical and one continuous predictor affecting group identity
## : One categorical fixed and one categorical random effect affecting group identity
tar_target(data_complexity, 2)
tar_target(data_complexity, 2)

, tar_target(models_to_compile,
establish_models(
Expand Down
Loading

0 comments on commit c1e6207

Please sign in to comment.