select.regressor: Regressor of a formula

Description Usage Arguments Examples

Description

Return the regressor variables contained in the formula

Usage

1
2
3
4
select.regressor(x, ...)

## S3 method for class 'formula'
select.regressor(x, type = "call", ...)

Arguments

x

a formula

...

additional arguments to be passed to the low level functions

type

either return an object of type call ("call") or the names of the variables ("vars")

Examples

1
2
3
4
5
6
7
8
select.regressor(Y1~X1+X2)
select.regressor(Y1~X1+X2, type = "vars")

select.regressor(Y1~X1+Y1)
select.regressor(Y1+Y2~X1+Y1, type = "vars")

select.regressor(~X1+X2)
select.regressor(~X1+X2, type = "vars")

bozenne/lava.reduce documentation built on May 13, 2019, 1:41 a.m.