
/keyboard-with-tilde-56a8ce3b5f9b58b7d0f54f30.jpg)
Tilde sign meaning how to#
This example illustrates how to use the tilde symbol within the lm function to fit a linear regression model in R.

The variables x1, x2, and x3 will be used as predictors for the target variable y.Įxample: Using ~ within lm() Function to Estimate Linear Regression Model The previous RStudio console output illustrates the structure of our example data: It consists of four numeric columns.
