aboutsummaryrefslogtreecommitdiff
path: root/R/nobs.mkinfit.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-11-01 12:19:03 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2019-11-01 12:19:03 +0100
commitbbb74d4f60033899cd5cdd36aa70f157bc52209e (patch)
treeca0f620ba0ffd59ff242071260d2346e4ca254ff /R/nobs.mkinfit.R
parent70e48e8360875f22970174d409c46cb3f076fa99 (diff)
Fix bug in yesterdays release, add methods for BIC
Diffstat (limited to 'R/nobs.mkinfit.R')
-rw-r--r--R/nobs.mkinfit.R8
1 files changed, 8 insertions, 0 deletions
diff --git a/R/nobs.mkinfit.R b/R/nobs.mkinfit.R
new file mode 100644
index 00000000..0e0dbbbb
--- /dev/null
+++ b/R/nobs.mkinfit.R
@@ -0,0 +1,8 @@
+#' Number of observations on which an mkinfit object was fitted
+#'
+#' @importFrom stats nobs
+#' @param object An mkinfit object
+#' @param \dots For compatibility with the generic method
+#' @return The number of rows in the data included in the mkinfit object
+#' @export
+nobs.mkinfit <- function(object, ...) nrow(object$data)

Contact - Imprint