Skip to content

Commit

Permalink
Updating version+news file
Browse files Browse the repository at this point in the history
  • Loading branch information
kkholst committed Feb 22, 2024
1 parent 2a8e431 commit 35f308a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: lava
Type: Package
Title: Latent Variable Models
Version: 1.7.4
Date: 2024-02-03
Version: 1.8.0
Date: 2024-02-22
Authors@R: c(person("Klaus K.", "Holst", email="klaus@holst.it", role=c("aut", "cre")),
person("Brice", "Ozenne", role = "ctb"),
person("Thomas", "Gerds", role = "ctb"))
Expand Down
12 changes: 8 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# lava 1.7.4
# lava 1.8.0
- New methods `estimate.mlm`, `IC.mlm`, `pars.mlm`, `estimate.array`, `estimate.data.frame`
- `Print` method for tabular data (matrix, data.frame)
- `merge` now supports regular expressions
- `Print` method for tabular data (matrix, data.frame, data.table)
- `merge` now supports regular expressions
- `IC` returns row-names (default id) as obtained from model.matrix or similar
- New vignette: Influence Functions
- operators %in.open%, %in.closed% for checking if elements are within a range `3 %in.open% c(0,1)`)
- operators `%in.open%`, `%in.closed%` for checking if elements are within a range
`3 %in.open% c(0,1)`)
- `estimate(..., estimator='glm')` now works with formulas with just an intercept
- `as.data.frame.sim`, `as.matrix.sim`
- fixed issues with quasi* families and negative binomial regr (MASS:glm.nb)

# lava 1.7.3
- `parameter.estimate` method to extract matrix with estimates, standard errors, and confidence limits from and estimate object (coefmat element)
Expand Down
12 changes: 7 additions & 5 deletions R/glmest.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,16 @@ GLMest <- function(m,data,control=list(),...) {
## if (isEventTime) {
## y <- yvar.et[y]
## }
#nn0 <- paste(y,xx,sep=lava.options()$symbol[1])
# nn0 <- paste(y,xx,sep=lava.options()$symbol[1])

f <- as.formula(paste0(y,"~",paste(xx,collapse="+")))
isSurv <- inherits(data[1,y],"Surv")
f <- as.formula(paste0(y, "~",
paste(xx, collapse = "+")
))
isSurv <- inherits(data[1, y], "Surv")
if (isSurv) {
g <- survival::survreg(f,data=data,dist=fam$family,...)
g <- survival::survreg(f,data=data,dist=fam$family,...)
} else {
g <- glm(f,family=fam,data=data,...)
g <- glm(f,family=fam,data=data,...)
}
p <- pars(g)
ii <- IC(g)
Expand Down

0 comments on commit 35f308a

Please sign in to comment.