Skip to content

Commit

Permalink
glmnet namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
krisrs1128 committed Aug 14, 2024
1 parent 0cc9859 commit 44891d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/contrast.R
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ indirect_overall <- function(model, exper = NULL, t1 = 1, t2 = 2) {
result[[i]] <- data.frame(
outcome = names(y_hat),
indirect_effect = y_hat,
contrast = rep(parse_name(t_, t1, t2), n_outcomes(model))
contrast = rep(parse_name(t_, t1, t2), n_outcomes(model)),
row.names = NULL
)
}

Expand Down
1 change: 1 addition & 0 deletions R/estimators.R
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ glmnet_model <- function(...) {
c("glmnet", "glmnetUtils"),
"to use a glmnet regression model for multimedia estimation."
)
requireNamespace("glmnetUtils", quietly = TRUE)

params <- glmnet_model_params(...)
new(
Expand Down

0 comments on commit 44891d8

Please sign in to comment.