Hi all,

I have a dataset that includes a list of information on companies from 2000-2014.

I am looking to run a univariate regression, but would like to run the regression by year, meaning a regression for the set of data for 2000, then 2001, then 2002 etc.

I am unsure on what the command is to run it by year?

I am also looking to winsorize it by year too if anyone is able to help?