select.response: Response variable of a formula

Description Usage Arguments Examples

Description

Return the reponse variable contained in the formula

Usage

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

## S3 method for class 'formula'
select.response(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.response(Y1~X1+X2)
select.response(Y1~X1+X2, type = "vars")

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

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

bozenne/lavaReduce documentation built on May 24, 2019, 3:05 a.m.