R में Supervised Learning: Regression
Nina Zumel and John Mount
Win-Vector, LLC
योगात्मक संबंध का उदाहरण:
plant_height ~ bacteria + sun
दो वैरिएबल्स का एक साथ प्रभाव योगात्मक नहीं है.
plant_height ~ bacteria + sun + bacteria:sun
दो वैरिएबल्स का एक साथ प्रभाव योगात्मक नहीं है.
plant_height ~ bacteria + sun + bacteria:sun
sun: categorical {"sun", "shade"}मानो दो अलग मॉडल: एक sun के लिए, एक shade के लिए.
yield ~ Stress + SO2 + O3

Metabol ~ Gastric + Sex

Interaction - Colon (:)
y ~ a:b
Main effects और interaction - Asterisk (*)
y ~ a*b
# Both mean the same
y ~ a + b + a:b
दो वैरिएबल्स के product को लिखना - I
y ~ I(a*b)
same as $y \propto a b$
| Formula | RMSE (cross validation) |
|---|---|
Metabol ~ Gastric + Sex |
1.46 |
Metabol ~ Gastric * Sex |
1.48 |
Metabol ~ Gastric + Gastric:Sex |
1.39 |
R में Supervised Learning: Regression