Skip to content

Commit

Permalink
no need to include NAs in get_data
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjclark committed Jul 28, 2023
1 parent 17a3aa2 commit 8549800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/marginaleffects.mvgam.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ get_data.mvgam = function (x, source = "environment", verbose = TRUE, ...) {

# Now get the observed response, in case there are any
# NAs there that need to be updated
mf_data[,resp] <- x$obs_data$y
#mf_data[,resp] <- x$obs_data$y

} else {
mf_data <- model.frame(x, trend_effects = FALSE)
mf_data[,resp] <- x$obs_data[[resp]]
#mf_data[,resp] <- x$obs_data[[resp]]
}
mf_data
}, error = function(x) {
Expand Down

0 comments on commit 8549800

Please sign in to comment.