Observed: 'Observed'

View source: R/observed.R

ObservedR Documentation

Observed

Description

Returns the variable used as the outcome when fitting a model.

Usage

Observed(x)

## Default S3 method:
Observed(x)

## S3 method for class 'MachineLearningEnsemble'
Observed(x)

Arguments

x

A model.

Details

Extracted for the entire data set (i.e., not just the specific values used in the fitting).

Methods (by class)

  • Observed(default): Extracts the dependant variable from an object from its formula.

  • Observed(MachineLearningEnsemble): Extracts the dependant variable directly from an object.


NumbersInternational/flipData documentation built on March 2, 2024, 10:52 a.m.