Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions R/ds.glm.R
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ ds.glm <- function(formula=NULL, data=NULL, family=NULL, offset=NULL, weights=NU
# Sum participants only during first iteration.
nsubs.total<-Reduce(f="+", .select(study.summary, 'numsubs'))
# Save family
f <- study.summary[[1]]$family
family.value <- study.summary[[1]]$family
f <- if (is.list(family.value) && "family" %in% names(family.value)) family.value$family else family.value
}

#Create variance covariance matrix as inverse of information matrix
Expand Down Expand Up @@ -640,7 +641,7 @@ ds.glm <- function(formula=NULL, data=NULL, family=NULL, offset=NULL, weights=NU
beta.vect.final<-beta.vect.next

scale.par <- 1
if(f$family== 'gaussian') {
if(f == 'gaussian') {
scale.par <- dev.total / (nsubs.total-length(beta.vect.next))
}

Expand Down
Loading