Hi Nick Cox
I want to add and multiply certain variables in stata in a new variable VaR. My expression is:
gen VaR=constant_term+ (coeff_L_Tbills* L_Tbills)+ (coeff_L_Inf* L_Inf)
Now the issue is that, for some rows where when L_Inf is missing or 0, the whole outcome VaR of the equation becomes zero. which shouldn't be otherwise if calculated manually.
How can I amend the above code, to get the correct equation.
Best Regards
Related Posts with working out expressions(sum and multiply) in stata with some missing observations
Help in panel data analysisHello, I really request for your help in doing panel data analysis. My data is: DV (ROA) IV( interes…
Making regression tables of marginal effects of Sequential Logit modelDear all, I would like to know how to make regression tables of marginal effects of Sequential Logit…
CorrelationsHi people, For my Master's thesis, I need to include a correlation matrix table including the corre…
Weighted summary statistics and outreg2I've been unable to create a table that shows the weighted summary statistics of the variable travel…
Use of time dummies in fixed effects estimationDear all, I am writing my Master's thesis, where I am doing an FE estimation on the probability of …
Subscribe to:
Post Comments (Atom)
0 Response to working out expressions(sum and multiply) in stata with some missing observations
Post a Comment