Skip to content

Commit

Permalink
Merge pull request #9 from pachadotdev/issue8
Browse files Browse the repository at this point in the history
fix #8
  • Loading branch information
pachadotdev authored Sep 20, 2024
2 parents ca4c305 + 4718d8b commit 3aa24f6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/feglm_offset.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ feglm_offset_ <- function(object, offset) {
wt <- object[["weights"]]
family <- object[["family"]]
lvls_k <- object[["lvls_k"]]
nt <- object[["nobs"]][["nobs"]]
nt <- object[["nobs"]][["nobs_full"]] - object[["nobs"]][["nobs_pc"]]
k_vars <- names(lvls_k)

# Extract dependent variable
Expand Down
14 changes: 14 additions & 0 deletions dev/issue8.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
devtools::load_all()

# install.packages("bife")
data(psid, package = "bife")

lmod = feglm(
LFP ~ KID1 + KID2 + KID3 + log(INCH) | ID + TIME,
data = psid,
family = binomial()
)

summary(lmod)

bias_corr(lmod)

0 comments on commit 3aa24f6

Please sign in to comment.