Skip to content

Commit

Permalink
STAAR v0.9.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xihaoli committed Aug 26, 2024
1 parent 475b60a commit 180f6c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/fit_null_glm_Binary_SPA.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fit_null_glm_Binary_SPA <- function(fixed, data, family = binomial(link = "logit
X <- model.matrix(obj_nullmodel)
working <- obj_nullmodel$weights

obj_nullmodel$XW <- t(X)%*%diag(working)
obj_nullmodel$XXWX_inv <- X%*%solve(t(X)%*%diag(working)%*%X)
obj_nullmodel$XW <- t(X*working)
obj_nullmodel$XXWX_inv <- X%*%solve(t(X*working)%*%X)

obj_nullmodel$use_SPA <- TRUE

Expand Down

0 comments on commit 180f6c2

Please sign in to comment.