Skip to content

Commit

Permalink
labels.estimate, transform.estimate
Browse files Browse the repository at this point in the history
  • Loading branch information
kkholst committed Jan 7, 2025
1 parent 6a0790d commit ffcddfd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ S3method(kappa,data.frame)
S3method(kappa,multinomial)
S3method(kappa,table)
S3method(kill,lvm)
S3method(labels,estimate)
S3method(labels,graphNEL)
S3method(labels,lvm)
S3method(labels,lvmfit)
Expand Down Expand Up @@ -357,6 +358,7 @@ S3method(summary,twostageCV)
S3method(summary,zibreg)
S3method(totaleffects,lvmfit)
S3method(tr,matrix)
S3method(transform,estimate)
S3method(transform,lvm)
S3method(twostage,estimate)
S3method(twostage,lvm)
Expand Down
5 changes: 2 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# lava 1.8.1
- Development version
- `sim.default` now accepts the argument `R` to be a list (of list) of
- `sim.default` now accepts the argument `R` to be a list (of lists) of
arguments.
- `subset.estimate` method
- New methods `subset.estimate`, `transform.estimate`, `labels.estimate`

# lava 1.8.0
- New methods `estimate.mlm`, `IC.mlm`, `pars.mlm`, `estimate.array`,
Expand Down
10 changes: 10 additions & 0 deletions R/estimate.default.R
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,16 @@ subset.estimate <- function(x, keep, ...) {
estimate(x, keep = keep, ...)
}

##' @export
transform.estimate <- function(`_data`, ...) {
estimate(`_data`, ...)
}

##' @export
labels.estimate <- function(object, str, ...) {
estimate(object, labels=str, ...)
}

##' @export
parameter.estimate <- function(x, ...) {
return(x$coefmat)
Expand Down

0 comments on commit ffcddfd

Please sign in to comment.