1 of 39

CrimeStat IV

Susan C. Smith

Christopher W. Bruce

Revised by: Thomas Mueller

2 of 39

About CrimeStat PowerPoint

  • This PowerPoint was revised from the Susan C. Smith and Christopher Bruce’s work. The Original can be found at:
  • http://www.icpsr.umich.edu/CrimeStat/workbook.html

  • Their PowerPoint and Manual was developed for CrimeStat 3.0. This PowerPoints was revised for CrimeStat 4.0
  • The GeoTech Center wants to thank both of them for allowing us to use this tremendous resource.

3 of 39

Chapter Two�Getting Data into (and out of) CrimeStat

4 of 39

In Chapter Two...

  • File formats understood by CrimeStat
  • Projection and coordinate system considerations
  • Associating your data with values needed by CrimeStat
  • Accounting for missing values
  • Creating a reference grid
  • Measurement parameters
  • Getting data out of CrimeStat

5 of 39

Introduction

  • Data must already be created, queried and geocoded
  • If your RMS or CAD automatically assigns geographic coordinates, you can import the data without going thru a GIS first
  • CrimeStat can read many formats, including .txt., .dat, .dbf, .shp, .mdb and ODBC data sources

6 of 39

Introduction

  • No matter the format, for CrimeStat to analyze the data, the attribute table must contain X and Y coordinates
    • X and Y coordinates: X coordinate value denotes a location that is relative to a point of reference to the east or west and the Y coordinate to the north or south
  • Exception: ArcGIS ‘shapefiles’ which CrimeStat will interpret automatically and add the X and Y coordinates as the first columns in the table

7 of 39

Introduction

  • Coordinate Systems
    • Longitude (X) and Latitude (Y) data (spherical coordinates)
      • Can be determined easily because the X coordinate will be a negative number (well, in North and South America)
      • If data is in this format, CrimeStat doesn’t need anything else
      • CrimeStat only reads long/lat data in decimal degrees (used by most systems)
    • U.S. State Plane Coordinates, North American Datum of 1983 (projected coordinates)
      • Specific to each state; based on an arbitrary reference point to the south and west of the state’ boundaries.
      • CrimeStat needs to know measurement units (feet/meters)

8 of 39

Entering Your First Primary File (GIS Side)

  • Open basemap in ArcGIS Pro
  • Add burglary series shapefile
  • Check projection and coordinate system
  • Right Click on the Layer name – Properties and then choose Source Tab
  • Also check the map units
  • Then close ArcGIS Pro

9 of 39

Primary File Screenshot

10 of 39

Primary File Screenshot 2

11 of 39

Entering Your First Primary File

  • Launch CrimeStat
  • Click Select Files

12 of 39

Entering Your First Primary File

  • In Type: Choose Point Shape files
  • Click Browse

13 of 39

Entering Your First Primary File

  • Choose the burglaryseries and click Open

  • Then Click OK

14 of 39

Entering Your First Primary File (CrimeStat Screenshot)

15 of 39

Entering Your First Primary File

  • Direct CrimeStat to X and Y coordinates using Dropdown menus

16 of 39

Entering Your First Primary File

  • Select coordinate system and data units – remember the units in ArcMap were feet. So it is projected and feet

17 of 39

Other Settings and Options

  • These are not required
  • Intensity – tells CrimeStat how many times to ‘count’ each point.
    • Default is to count each point once
  • Weight allows us to apply different statistical calculations to different points
    • Rarely used; but will see in a future chapter
  • Time is used in several CrimeStat space-time calculations
    • Must be input as integers or decimal numbers; will see in a future chapter

18 of 39

Other Settings and Options

  • The missing value column allows us to account for bad data
    • Tell CrimeStat which records to ignore when performing calculations
    • Default is ‘blank’ which excludes blank fields and those with nonnumeric values
    • Users often choose “0”
    • Enter each missing value (-1, 99, 999)
    • Cannot enter ranges

19 of 39

Other Settings and Options

  • Directional and distance fields are used if your data uses polar coordinate systems
    • This is rare
  • The secondary file screen allows us to enter a second file to relate to the first
    • Must use the same coordinate system and data units as the primary files
    • Cannot include a time variable

20 of 39

Creating a Reference Grid

  • CrimeStat needs to know the extent of the jurisdiction
  • The reference file is a grid that sits over the entire study area
    • Can be imported or created by CrimeStat
      • To have CrimeStat create the grid
        • Specify coordinates of lower left and upper right extremities of the jurisdiction
          • Coordinates must be in the same system as the primary file

21 of 39

Creating a Reference Grid

  • Select the Reference File tab; create grid
  • Enter values for Lower Left & Upper Right

  • Specify grid parameters
    • Either distance for each cell, or
    • Number of columns desired
  • Save ‘LincolnGrid’

22 of 39

Creating a Reference Grid�(GIS Side)

  • Open ArcMap and add Streets and Burglary Series in ArcMap
  • Zoom into Burglary Layer
  • Move your cursor to the Lower left and write down the coordinates
  • Move your cursor to Upper Right and write down the coordinates
  • Put these coordinates into the Reference Grid (It may vary depending on cursor)

23 of 39

Creating a Reference Grid (Lower Left)

24 of 39

Creating a Reference Grid�(Upper Right)

25 of 39

Measurement Parameters

  • Final bits of data for certain routines
  • Total area of jurisdiction (88.19 square miles in Lincoln)
  • Length of street network is the sum of all of the individual lengths of the streets (1283.61 miles in Lincoln)
  • The distance measurement tells CrimeStat how we want to see the distances calculated
    • Direct (as the crow flies), Indirect or Manhattan (along a grid) or Network (uses actual road network)

26 of 39

Entering Measurement Parameters

  • Select the Measurement Parameters tab
  • Enter values for Area & Length of street Network
  • Choose “Indirect (Manhattan)” for type of distance measurement

27 of 39

Entering Measurement Parameters (Area)

  • If you that information is NOT given then open ArcGIS Pro and add CityExt (City Extent)
  • Open the Attribute Table – Table Options
  • Add field

28 of 39

Entering Measurement Parameters (Area)

29 of 39

Entering Measurement Parameters (Area)

  • Choose a field name: SQMile
  • Dropdown – Float. Then Save

30 of 39

Entering Measurement Parameters (Area)

  • Right Click on Field Name
  • Choose Calculate Geometry, Property = Area and Area Unit = Square Miles
  • Then Click Ok

31 of 39

Entering Measurement Parameters (Area)

32 of 39

Entering Measurement Parameters (Length of Street Network)

  • Complete previous steps for the streets layer
  • Field Name = Miles
  • Type = Float
  • Units = Miles
  • Save

33 of 39

Entering Measurement Parameters (Length of Street Network)

  • Calculate Geometry
  • Miles and Length
  • Miles
  • Projection = Current Map

34 of 39

Entering Measurement Parameters (Length of Street Network)

35 of 39

Entering Measurement Parameters (Length of Street Network)

  • Select by Location
  • Input = Streets
  • Selecting Features = CityExt
  • Are within the source layer feature

36 of 39

Entering Measurement Parameters (Length of Street Network)

  • Open Attribute Table
  • Choose Show Selected Records
  • Right Click on Miles
  • Click Statistics
  • Write down the Sum

37 of 39

Entering Measurement Parameters

  • Select the Measurement Parameters tab
  • Enter values for Area & Length of street Network
  • Choose “Indirect (Manhattan)” for type of distance measurement

38 of 39

39 of 39

Getting Data Out of CrimeStat

  • If the routine results in calculations for a number of records, it exports as a .dbf
  • If the routine results in one or more sets of coordinates, exports as
    • a .shp for ArcView
    • a .mif for MapInfo
    • a .bna for Atlas GIS boundary file