Skip to content

Commit 8f8fbb6

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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)