estimate: Estimate model performances and covariance matrix.

View source: R/estimate.R

estimateR Documentation

Estimate model performances and covariance matrix.

Description

This function allows the estimation of model performances and their covariance by employing a prespecified estimation method.

Usage

estimate(comparison, method = "default", ..., args = NULL)

Arguments

comparison

SEPM.comparison, see compare.

method

cahracter, speciying known estimation method (default: "default"). Alternativly a custom SEPM.control object may be spcified, see estimate_control.

...

further (named) arguments to control$mapping.

args

named list of further arguments to control$mapping

Details

When no arguments are supplied other than comparison, maximum likelihood (control = "default") is conducted. Call estimate_control() for more information regarding estimation methods.

Value

An SEPM.comparison object which summarizes the estimates result.

Examples

y <- rep(1:0, times=c(3,7))
yhat <- cbind(model1 = rep(1:0, 5),
             model2 = rep(0, 10),
             model3 = rep(1:0, times=c(2,8)))
define_hypothesis("accuracy", threshold = 0.75) %>%
 compare(predictions = yhat, labels = y) %>%
 estimate()

maxwestphal/SEPM documentation built on April 12, 2024, 12:09 a.m.