outliers in a scatterplot
Posted: Wed May 23, 2018 2:22 pm
Hello,
I want to graph a scatter plot with a regression line. The graph should show all the data I have but the regression line should be calculated with a subgroup of the data without outliers.
More specifically I want to remove the financial crisis years 2008 and 2009 of the data for the regression but I still want the graph to show them preferably in a different color.
Is there an easy way to do this?
Regards
LM Gomez
I want to graph a scatter plot with a regression line. The graph should show all the data I have but the regression line should be calculated with a subgroup of the data without outliers.
More specifically I want to remove the financial crisis years 2008 and 2009 of the data for the regression but I still want the graph to show them preferably in a different color.
Is there an easy way to do this?
Regards
LM Gomez