Hi all,
I am having some difficulty trying to use the for function (i am very new to stata). Below is a photo of my dataset, i wish to create a for loop that goes through each value in the variable 'beta_values' and to identify outliers. If the beta value is greater than 2 or less than -2, i want to display the ID of that company (using the id variable) 'has a beta value of' followed by the beta.
Thanks.

I am having some difficulty trying to use the for function (i am very new to stata). Below is a photo of my dataset, i wish to create a for loop that goes through each value in the variable 'beta_values' and to identify outliers. If the beta value is greater than 2 or less than -2, i want to display the ID of that company (using the id variable) 'has a beta value of' followed by the beta.
Thanks.

Comment