R/methods_tobit1.R

Defines functions get_predict.tobit1

Documented in get_predict.tobit1

#' @rdname get_predict
#' @export
get_predict.tobit1 <- function(model,
                               newdata = insight::get_data(model),
                               type = "response",
                               ...) {

    out <- stats::predict(model, what = type, newdata = newdata)
    out <- data.frame(rowid = seq_len(length(out)), estimate = out)
    return(out)
}

Try the marginaleffects package in your browser

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

marginaleffects documentation built on Oct. 20, 2023, 1:07 a.m.