R - (Indicator|Identity) Function (I)

Card Puncher Data Processing

Protection

As power has a meaning in the formula, the identity function (I) is used to protect it.

I(predictor1^2)

Indicator

I(Year < 2005)

Year < 2005 turns into a logical but when wrapped in a indicator becomes a zero-one variable.





Discover More
Step Function Linear Regression
Data Mining - Step Function (piecewise constants)

Step functions, are another way of fitting non-linearities. (especially popular in epidemiology and biostatistics) Continuous variable are cut into discrete sub-ranges and fit a constant model in...
Card Puncher Data Processing
R - Non-linear Effect Analysis

Non-linear Analysis with R. where: the quadratic is indicated by the power 2 (predictor1^2) As power has a meaning in this formula, the identity function (I) is used to protect it....



Share this page:
Follow us:
Task Runner