Skip to content

Commit

Permalink
Change the initialization strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
statwangz committed Oct 17, 2023
1 parent e255bd9 commit 6f7311b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/mfairInitialization.R
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ initSF <- function(Y, Y_missing, Y_sparse, n_obs) {
} else {
tau <- 2 / var(as.vector(Y), na.rm = TRUE)
}
beta <- 2 / var(mu)
# beta <- 2 / var(mu)
beta <- 1.0
FX <- rep(0.0, N)

object <- new(
Expand Down

0 comments on commit 6f7311b

Please sign in to comment.