Skip to content

Commit

Permalink
Merge pull request #36 from egouldo/rerun-targets
Browse files Browse the repository at this point in the history
Ensure inverse weights applied #35
  • Loading branch information
egouldo authored May 24, 2024
2 parents 2f6a850 + cf4b2a3 commit 690696f
Show file tree
Hide file tree
Showing 8 changed files with 749 additions and 749 deletions.
4 changes: 2 additions & 2 deletions R/fit_boxcox_ratings_cat.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ fit_boxcox_ratings_cat <- function(.data, outcome, outcome_var, interceptless =
(1 | ReviewerId) # + (1 | study_id ) RE ommitted due to convergence issues
))
mod <- lme4::lmer(f,
data = data_tbl #,
#weights = I(1/pull(data_tbl,{{outcome_var}}))
data = data_tbl ,
weights = I(1/pull(data_tbl,{{outcome_var}}))
)
}else(#interceptless: for plotting
mod <- lme4::lmer(rlang::new_formula(rlang::ensym(outcome),
Expand Down
2 changes: 1 addition & 1 deletion _targets.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tar_option_set(
packages = pkgs,
imports = "ManyEcoEvo",
# debug = c("augmented_data_3efd9941")#, #augmented_data_a4d78efa
# cue = tar_cue(mode = "never") #because we have silent errors!
cue = tar_cue(mode = "always") #because we have silent errors!
)

list(tarchetypes::tar_file_read(name = euc_reviews,
Expand Down
1,490 changes: 745 additions & 745 deletions _targets/meta/meta

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data-raw/tar_make.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ library(targets)
library(usethis)

# ---- Run targets pipeline ----
# tar_destroy() # Uncomment and run if want to reproduce from scratch, run locally only
tar_destroy() # Uncomment and run if want to reproduce from scratch, run locally only
tar_make()

# ---- Read targets and use data ----
Expand Down
Binary file modified data/ManyEcoEvo_results.rda
Binary file not shown.
Binary file modified data/ManyEcoEvo_viz.rda
Binary file not shown.
Binary file modified data/ManyEcoEvo_yi_results.rda
Binary file not shown.
Binary file modified data/ManyEcoEvo_yi_viz.rda
Binary file not shown.

0 comments on commit 690696f

Please sign in to comment.