Skip to content

Commit

Permalink
add constraint m matrix step2
Browse files Browse the repository at this point in the history
  • Loading branch information
FloPittion committed Aug 23, 2024
1 parent 69a0440 commit 57c2d86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/step2_estimate_effect.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,14 @@ estimate_effect <- function(object , m, boots = 1000, ...) {
outcome = object$input$outcome_input

M = m

if (!is.matrix(M)){
stop("m must be a matrix")
}
if (is.null(colnames(M))) {
colnames(M) <- 1:ncol(M)
}

expo_var_ids =object$input$expo_var_ids
ncol_var = length(expo_var_ids)
outcome_type = object$input$outcome_var_type
Expand Down

0 comments on commit 57c2d86

Please sign in to comment.