Skip to content

Commit c6d08d7

Browse files
committed
Add coef and logLik methods.
1 parent f0661be commit c6d08d7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
S3method(as.data.frame,dfm)
44
S3method(as.data.frame,dfm_forecast)
5+
S3method(coef,dfm)
56
S3method(fitted,dfm)
7+
S3method(logLik,dfm)
68
S3method(plot,ICr)
79
S3method(plot,dfm)
810
S3method(plot,dfm_forecast)

R/methods.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ print.dfm <- function(x, digits = 4L, ...) {
7373
return(invisible(x))
7474
}
7575

76+
#' @export
77+
coef.dfm <- function(object, ...) list(A = object$A, C = object$C)
78+
coefficients.dfm <- coef.dfm
79+
80+
#' @export
81+
logLik.dfm <- function(object, ...) object$loglik[length(object$loglik)]
82+
7683
#' @rdname summary.dfm
7784
#' @param method character. The factor estimates to use: one of \code{"qml"}, \code{"2s"} or \code{"pca"}.
7885
#' @param \dots not used.

0 commit comments

Comments
 (0)