Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 773 Bytes

Process.md

File metadata and controls

23 lines (21 loc) · 773 Bytes

Steps for analysis

  1. clipdatafiles.R
    • Trim environmental datasets to CA
  2. sampledata.R :
    • randomly assign points in California
    • randomly assign positive cases
    • created dataframe with sample number, lat, long, status, sex, age, date
  3. case_distmetrics.R : calculate distance measures.
    • mean distance from positive cases
    • distance to nearest positive case
    • distance to CA border
  4. buffermetrics.R: Make buffers & pull data!
    • make buffers 5km2
    • tabulate intersect landcover within buffer
    • Ruggedness (sd of elevation within buffer)
    • highway density within buffer
  5. regression.R
    • Rare-events Logistic Regression, package Zelig
  6. rasters.R
    • New raster preparation
    • predict and plot risk map!