Skip to content

Commit 56e9a70

Browse files
committed
drop interactions when creating fixed matrix, poly
1 parent 65f15bf commit 56e9a70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

R/fixef_sim.r

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,9 @@ simulate_fixed <- function(data, sim_args, ...) {
498498
fixed_vars_poly_ns <- gsub("poly\\(|\\,.+\\)|ns\\(|\\,.+\\)", "",
499499
fixed_vars_new[grepl("^poly|^ns", fixed_vars_new)]
500500
)
501+
if(any(grepl(":", fixed_vars_poly_ns))) {
502+
fixed_vars_poly_ns <- fixed_vars_poly_ns[!grepl(":", fixed_vars_poly_ns)]
503+
}
501504
Omat_poly_ns <- Omat[ , fixed_vars_poly_ns, drop = FALSE]
502505
} else {
503506
Omat_poly_ns <- NULL

0 commit comments

Comments
 (0)