Hi,
I'm currently building my data base for my master thesis.
My problem concerns the generation of the dependent variable, which I want to indicate number of reported crime by week.
Because of how we in Sweden report crime, the reported crime variable ranges from 1 to 135, meaning one observation can contain 135 counts of a specific crime type.
The "week" variable I simply generated by the "week()" command. As such, it contains frequencies of observations, e.g., week 1 = 5000.
As you can imagine I cannot simply divide the variables of interest by eachother to acquire the desired variable.
I've searched in this forum and in general but I don't seem to be abel to find a solution to my issue, i.e., how to generate the ratio-variable number of crimes by week.
I'm currently building my data base for my master thesis.
My problem concerns the generation of the dependent variable, which I want to indicate number of reported crime by week.
Because of how we in Sweden report crime, the reported crime variable ranges from 1 to 135, meaning one observation can contain 135 counts of a specific crime type.
The "week" variable I simply generated by the "week()" command. As such, it contains frequencies of observations, e.g., week 1 = 5000.
As you can imagine I cannot simply divide the variables of interest by eachother to acquire the desired variable.
I've searched in this forum and in general but I don't seem to be abel to find a solution to my issue, i.e., how to generate the ratio-variable number of crimes by week.
Comment