Skip to contents

Symbolic element-wise 0-1 step function for LazyTensor objects (i.e. 0 if x < 0, 1 if x >= 0 for an input x) or stepwise model selection otherwise.

Usage

step(object, ...)

Arguments

object

input for step.default() or step.LazyTensor().

...

optional additional input arguments.

Value

See value of step.default() or step.LazyTensor().

Details

If x is a LazyTensor, see step.LazyTensor(), else see step.default().

Author

Chloe Serre-Combe, Amelie Vernay

Examples

if (FALSE) {
# R base operation: see `?step.default`
# LazyTensor symbolic element-wise sign
x <- matrix(runif(150 * 3), 150, 3) # arbitrary R matrix, 150 rows, 3 columns
x_i <- LazyTensor(x, index = 'i')   # creating LazyTensor from matrix x, 
                                    # indexed by 'i'
Step_x <- step.LazyTensor(x_i)      # symbolic matrix, 150 rows and 3 columns
}