R/methods_not_implemented.R

Defines functions plot.nonprob anova.nonprob

#' @method anova nonprob
#' @exportS3Method
anova.nonprob <- function(object, ...) {
  stop("The `anova` method is not implemented for the `nonprob` class. If you would like to compare models (sets of variables), compare point and interval estimates. If you would like to assess variables, do it before applying the `nonprob` function.")
}

#' @method plot nonprob
#' @exportS3Method
plot.nonprob <- function(x, ...) {
  stop("We do not provide tools for visual assessment of the results. If you are interested in covariate balance plots, we recommend using the `cobalt` package. If you are interested in evaluation of the models (e.g. IPW, MI), we recommend using base R functions or the `modelsummary` package.")
}

Try the nonprobsvy package in your browser

Any scripts or data that you put into this service are public.

nonprobsvy documentation built on April 3, 2025, 7:08 p.m.