Skip to content

Commit

Permalink
fixes #77
Browse files Browse the repository at this point in the history
  • Loading branch information
smgogarten committed Nov 8, 2023
1 parent 44503b2 commit 25933a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Type: Package
Title: GENetic EStimation and Inference in Structured samples
(GENESIS): Statistical methods for analyzing genetic data from
samples with population structure and/or relatedness
Version: 2.33.0
Date: 2021-08-23
Version: 2.33.1
Date: 2023-11-07
Author: Matthew P. Conomos, Stephanie M. Gogarten,
Lisa Brown, Han Chen, Thomas Lumley, Kenneth Rice, Tamar Sofer, Adrienne Stilp, Timothy Thornton, Chaoyu Yu
Maintainer: Stephanie M. Gogarten <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion R/spa.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SPA_pval <- function(score.result, nullmod, G, pval.thresh = 1){
# calculate the fitted values from the null model;
# expit(eta) = expit(X\beta + Zb)
if (nullmod$model$family$mixedmodel) {
mu <- as.vector(expit(nullmod$fit$linear.predictor))
mu <- as.vector(plogis(nullmod$fit$linear.predictor))
} else {
# fitted.values from glm models are already the expit.
mu <- as.vector(nullmod$fit$fitted.values)
Expand Down

0 comments on commit 25933a8

Please sign in to comment.