merge.formula: Merge Formula With Right Hand Side of Second Formula

Description Usage Arguments Examples

View source: R/formula.util.q

Description

This is method for formulas of the merge generic function. Here it is support for the function l1ce and not intended to be called directly by users.

Usage

1
2
## S3 method for class 'formula'
merge(x, y, ...)

Arguments

x,y

formulas.

...

potentially further arguments passed to methods.

Examples

1
2
3
4
5
6
merge(y ~ x1, ~ x2) ## ->  y ~ x1 + x2

f2 <- merge(y ~ x1*x2, z ~ (x2+x4)^3)
f. <- merge(y ~ x1*x2,   ~ (x2+x4)^3) # no LHS for 2nd term
f2
stopifnot(f2 == f.)

Example output

R Package to solve regression problems while imposing
	 an L1 constraint on the parameters. Based on S-plus Release 2.1
Copyright (C) 1998, 1999
Justin Lokhorst   <jlokhors@stats.adelaide.edu.au>
Berwin A. Turlach <bturlach@stats.adelaide.edu.au>
Bill Venables     <wvenable@stats.adelaide.edu.au>

Copyright (C) 2002
Martin Maechler <maechler@stat.math.ethz.ch>
y ~ x1 + x2
<environment: 0x1d59d30>
y ~ x1 * x2 + (x2 + x4)^3
<environment: 0x1d71788>

lasso2 documentation built on Oct. 8, 2021, 9:10 a.m.