I am interested in the difference between a linear regression and a linear model. In my understanding, linear regression is part of a larger family of linear models but both terms are often used as synonyms. Now, it has been suggested to me, that I could replace a regression analysis by a linear model to bypass the assumptions that need to be met when performing linear regression. If you have any reading suggestions on the topic, they are very welcome.
I would like you to help me figure out whether what I do
- is linear regression, and should be treated like it
- could be replaced by a "linear model"
- my method is synonym to a "linear model"
So, here is what I did for short. The purpose of the analysis was to plot a line in a scatter plot. Both slope and intersection point of the line with the x-axis would be used to analyze the dataset. The outcome variable was a rate (concentration per time) of a chemical element and the predictor was a ratio of two concentrations (so no unit). I measured rates in different environments (depths), which have to be compared in one plot. Only one of the depths does not fit regression assumptions.
- I used the lm function in R to calculate a linear equation.
- I checked the residuals of the lm object.
- I found that residuals were neither normally distributed nor had equal variances.
- I figured that log-transformation of the outcome varibale (rate) would fix the variance, but residuals were still not normally distributed.
- I decided on using a robust method so the equation would be less biased by outliers, which I cannot exclude from analysis (function lmrob, package robustbase).
- I did not plot the line because of the log-transformation. There is other data in the plot that does not need to be log transformed, but should stay comparable to the dataset causing trouble. It is also not possible to expand the plot by another one with a log-scale, because the original plot is part of a multiple plot design, that is already quite extensive.
Maybe for my purpose the regression assumptions are not of interest? Right now, I am rather stuck about what to do, so thank you for your help!