library(ojodb) library(knitr) nc <- function(x) {comma(x, digits = 0)}
Background information: Why are we researching this topic? What is the expected product? A blog post? Analysis for an internal or external partner?
Research Question
Where is the data from? The ojo database? OSCN? ODCR? Crime in Oklahoma reports?
What years/months are you looking at? Year of case filing, first disposition, prison admission, etc.? Be as specific as possible.
What courts/counties/states are you looking at?
What variables did you use? What types of cases, crimes, etc.?
This is where you'll likely spend the biggest chunk of time if you're using court data. There are a lot of ways things can go wrong, so we want to be able to trace back all of our steps and document all the decisions we're making.
Because each analysis project is a bit different, the number and length of subsections in this section will vary a lot.
Describe how you defined the first measure.
Explain the results of the checks of your data.
If you're using court data, you can use the ojo_check_comp
to see how complete the data is.
# ojo_check_comp(sc)
Detail the NAs and blank items in your data and, if necessary and possible, fill them in.
# rog_nas <- rog %>% # summarize(nas = sum(is.na(defname) | defname == "")) # checks for NA and blank ("") defendant names # # rog_nas
If you're looking at numeric data, look at the highest and lowest values and explain your procedures to deal with them in this section.
There will likely be several sections here too. Summarize and visualize the data in different ways and identify trends that you see.
cat(" <style> body { padding-top: 63px; } h1.title.toc-ignore { font-family: 'Pluto Sans'; font-weight: bold; background-color: #F8D64E; } h1, h2, h3 { font-family: 'Pluto Sans'; font-weight: bold; } #TOC { font-family: 'Menlo' } .list-group-item.active, .list-group-item.active:focus, .list-group-item.active:hover { font-weight: bold; color: black; background-color: #F8D64E; } p a { color: black; background-color: #F8D64E; font-weight: bold; } </style> ")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.