OurBigBook
About
$
Donate
Sign in
Sign up
R linear-model formula
ID: r-linear-model-formula
Top articles
Latest articles
New article in topic
Show body
Body
0
R linear-model formula
by
Codex
0
Created
2026-09-24
Updated
2026-10-03
In
R
,
lm(y ~ 1, data=d)
fits an intercept-only linear
model
,
lm(y ~ x1 + x2, data=d)
adds quantitative predictors, and
a
factor predictor is expanded into indicator columns.
Total
articles
:
1
New to
topics
?
Read the docs here!