variables: Extract the variables from a model formula

View source: R/variables.R

variablesR Documentation

Extract the variables from a model formula

Description

Extract the variables from a model formula

Usage

variables(object)

## S3 method for class 'supernova'
variables(object)

## S3 method for class 'formula'
variables(object)

## S3 method for class 'lm'
variables(object)

## S3 method for class 'lmerMod'
variables(object)

Arguments

object

A formula, lm or supernova object

Value

A list containing the outcome and predictor variables in the model.


UCLATALL/supernova documentation built on Feb. 13, 2024, 6:57 a.m.