Learn R Programming

gnm (version 0.9-3)

Raise: Specify a Predictor Raised to a Constant Power in an gnm Model

Description

A function of class "nonlin" to specify a predictor raised to a constant power in the formula argument to gnm.

Usage

Raise(expression, power = 1, inst = NULL)

Arguments

expression
a symbolic expression representing the (possibly nonlinear) predictor.
power
the power.
inst
(optional) an integer specifying the instance number of the term.

Value

  • A list with the components required of a "nonlin" function:
  • predictorsthe expression argument passed to Raise
  • terma function to create a deparsed mathematical expression of the term, given a label for the predictor.
  • callthe call to use as a prefix for parameter labels.

Details

The expression argument is interpreted as the right hand side of a formula in an object of class "formula", except that an intercept term is not added by default. Any function of class "nonlin" may be used in addition to the usual operators and functions.

See Also

gnm, formula, nonlin.function, Inv