0

Quick and easy question. I was wondering when we are doing a regression in R, what does it mean if we do this:

Y ~ .

Instead of let's say

Y ~ X

Thanks in advance,

Bigal
  • 11
  • 2

1 Answers1

0

The dot signifies any columns from data that are otherwise not used. y ~ x means y is proportional to x, i.e., y = mx + b.

In other words, an expression y ~ model meanss that the response y is modeled by the linear predictor, model.

See this article and see this s.o. post

Blake
  • 986
  • 9
  • 24
  • If I understand correctly, Y ~ . will be Y ~ all other columns in my dataset except the the column for Y? – Bigal Mar 02 '18 at 19:00