SHAZAM Questions and Answers (Q&A) - RSS feedhttp://community.econometrics.com/questions/SHAZAM Econometrics, Statistics and Analytics Communityen<font color="white">Copyright <b>SHAZAM Analytics, 2018</b></font>Wed, 09 Apr 2014 07:04:38 +0000Round of decimal numbershttp://community.econometrics.com/question/479/round-of-decimal-numbers/Hi all,
I have a variable y > 0 and some of the numbers are decimal numbers, for example 0.3, 1.6, 7.7 etc. I want to round of the numbers so they are hole numbers, i.e. 2.6 is round of to 3 and 1.2 is round of to 1 and 0.2 is round of to 0 etc. Any suggestion which GENR-commend could solve the problem?
Regards,
PanteraWed, 09 Apr 2014 07:04:38 +0000http://community.econometrics.com/question/479/Generating - transformation of a time series variablehttp://community.econometrics.com/question/242/generating-transformation-of-a-time-series-variable/Hi all,
I have the following problem: I want to generate a new time series variable which measures the **accumulated** (the sum) of an existing variable "X". The new variable is a sum inside a given **moving** time **window** with a **constant** width of let say 40 years. More precisely - the new variable is generating in the following way: Let the sum of the first 40 observations from time point t = 1 to t = 40 represents the *first* observation, the *second* observation is the sum of the observations from t = 2 to time point t = 41, the *third* observation is the sum of observations from t = 3 to t = 42 etc. The constant time window of 40 years is moving by one step at the time. It's like a moving average but **WITHOUT** dividing by the number of observations. I hope one of you Shazam experts could look into the problem - it would be of great help.
Regards,
P.PanteraTue, 26 Jun 2012 05:02:16 +0000http://community.econometrics.com/question/242/How to calculate a simple proportion?http://community.econometrics.com/question/220/how-to-calculate-a-simple-proportion/I am looking on what code to use in order to compute the proportion of a group e.g the amount of people who went to school in a groupmatt dormanFri, 23 Sep 2011 11:25:03 +0000http://community.econometrics.com/question/220/