Skip to content
Prev 19144 / 29559 Next

output data from R to SaTScan

Hi all,

So I have created some maps in R, smoothed then using the BYM model in Openbugs and opened the CODA files in R once again to analyze results etc.

I would like to now test for clusters using SaTScan and the post smoothing data - but I can find very little info anywhere on how to output my R data into a format that SaTScan can use. My data within R is in the form of a SpatialPolygonsDataFrame which up until now I have been saving as an ESRI shapefile with the command:
writeOGR(data, "", layer="data_out",driver="ESRI Shapefile",overwrite=T)

But from what info I can find, I think this doesn't seem to be a useful format for SaTScan.

Any advice would be appreciated on how to achieve this!
Many thanks,
James