Hi,
I'm quite new to stata and face a problem.
I want to use a for loop to run through my variables and calculate beta's of stocks. For this I intend on using a for loop and a regression to calculate the beta's. I want to generate a variable with these betas. I do not however know how to merge the for and if statement with a regression to generate a variable
Related Posts with regression to estimate beta per company
mean through several variables Hello, I have 4 different variables, each with the expression 1-5. the variables include mental he…
Bi-factor Model in StataHello, I have used the SEM builder to specify a Bi-factor model in Stata with two latent factors - …
panel data regression at higher level of aggregationHi, I have data in individual level but want to run a regression to test for the correlation between…
Generate new variable by command "if"Hi I want to create a new variable (var3) using an existing variable (var2). Like the attached photo…
Difference-in-Difference with three time periods when age assigns treatmentDear Statalist, I am trying to estimate the effect of a pension reform on work status of poor peopl…
Subscribe to:
Post Comments (Atom)
0 Response to regression to estimate beta per company
Post a Comment