Hi, I would like to create a formula for making variables of the kind:
gen newvar = v[k] + v[k+8] + v[k+16] + v[k+24] + v[k+32]
where I will specify the k.
Any idea how I can execute this?
Thanks
Related Posts with Creating variables that sum variables in regularly interspaced columns
Adding Variables Gradually in RegressionsHi, I want to add multiple independent variables in the regressions gradually with the same depende…
Calculation of Kolm–Pollack Index.Hello everybody! I.m trying to calculate the Kolm–Pollack Index of inequality for the distribution …
Monthly last observation in a temporal seriesHi, I have a temporal series with the follow variables: idcompany, lastprice and date (dd/mm/yyyy). …
Hypothesis Testing Regression Coefficients: One-sidedHelpful Link: https://www.stata.com/support/faqs/statistics/one-sided-tests-for-coefficients/ Hell…
OutliersDear All, I have a quick question, Is it necessary to remove outliers from survey data? Would that…
Subscribe to:
Post Comments (Atom)
0 Response to Creating variables that sum variables in regularly interspaced columns
Post a Comment