I have crime event data rows:
dayofweek1, region1, hour1, crimetype1 dayofweek2, region2, hour2, crimetype2 ...
and I want to use them as factors to model crime rates/probabilities at the region level.
I also want to use the resulting model to be able to input factor values to produce crime probabilities. e.g. on Sunday, in region1 there is a .03 chance of burglary at 3pm.
I think I should use a multilevel model, but everything I have found assumes a y value at the individual data row level which I do not have. All the row data are crimes.
Does anyone have an example of such a model (obviously not necessarily crime data, and preferably using python)?
Can the prediction bit be done?