Skip to content

Commit

Permalink
change crit for other gam function
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhuling committed Sep 3, 2020
1 parent f9e75c8 commit 898e772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/fit_losses.R
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,8 @@ fit_sq_loss_gam <- function(x, y, trt, n.trts, wts, family, match.id, ...)
var.levels[v] <- length(unique(x[,sel.idx[v]]))
}

contin.vars <- sel.vnames[var.levels > 3]
binary.vars <- sel.vnames[var.levels <= 3]
contin.vars <- sel.vnames[var.levels > 2]
binary.vars <- sel.vnames[var.levels <= 2]

# create formula for gam
contin.formula <- binary.formula <- NULL
Expand Down

0 comments on commit 898e772

Please sign in to comment.