Skip to content

Commit

Permalink
Update mfairBackfitting.R
Browse files Browse the repository at this point in the history
  • Loading branch information
statwangz committed Sep 22, 2023
1 parent ed6d082 commit f86c6be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/mfairBackfitting.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fitBack <- function(object,
# Will be used for the partially observed matrix fitting
if (object@Y_missing) {
if (object@Y_sparse) {
obs_indices <- as.matrix(summary(Y)[, c(1, 2)])
obs_indices <- as.matrix(summary(object@Y)[, c(1, 2)])
} else {
obs_indices <- !is.na(object@Y)
}
Expand Down

0 comments on commit f86c6be

Please sign in to comment.