Skip to content

Commit

Permalink
drop interactions when creating fixed matrix, poly
Browse files Browse the repository at this point in the history
  • Loading branch information
lebebr01 committed May 8, 2024
1 parent 65f15bf commit 56e9a70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/fixef_sim.r
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,9 @@ simulate_fixed <- function(data, sim_args, ...) {
fixed_vars_poly_ns <- gsub("poly\\(|\\,.+\\)|ns\\(|\\,.+\\)", "",
fixed_vars_new[grepl("^poly|^ns", fixed_vars_new)]
)
if(any(grepl(":", fixed_vars_poly_ns))) {
fixed_vars_poly_ns <- fixed_vars_poly_ns[!grepl(":", fixed_vars_poly_ns)]
}
Omat_poly_ns <- Omat[ , fixed_vars_poly_ns, drop = FALSE]
} else {
Omat_poly_ns <- NULL
Expand Down

0 comments on commit 56e9a70

Please sign in to comment.