<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.0">Jekyll</generator><link href="https://r-class.github.io/cpp-528-fall-2021-group-01/feed.xml" rel="self" type="application/atom+xml" /><link href="https://r-class.github.io/cpp-528-fall-2021-group-01/" rel="alternate" type="text/html" /><updated>2021-12-04T05:12:55+00:00</updated><id>https://r-class.github.io/cpp-528-fall-2021-group-01/feed.xml</id><title type="html">CPP 528 2021 Group 1 Website</title><subtitle>This is short description of the CPP 528 Template Website</subtitle><author><name>Ahmed Rashwan, Alev Yildiz, April Peck, and Erin McIntyre</name></author><entry><title type="html">Data Manifest</title><link href="https://r-class.github.io/cpp-528-fall-2021-group-01/ch06-utilities_master/" rel="alternate" type="text/html" title="Data Manifest" /><published>2021-12-04T00:00:00+00:00</published><updated>2021-12-04T00:00:00+00:00</updated><id>https://r-class.github.io/cpp-528-fall-2021-group-01/ch06-utilities_master</id><content type="html" xml:base="https://r-class.github.io/cpp-528-fall-2021-group-01/ch06-utilities_master/">&lt;h1 id=&quot;lab-02-functions&quot;&gt;Lab 02 Functions————————————————————–&lt;/h1&gt;

&lt;h2 id=&quot;create-example-function&quot;&gt;Create example function&lt;/h2&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;today &amp;lt;- function() {

  # store today's date
  today_date &amp;lt;- format(Sys.time(), '%B %d, %Y')
  
  # return today's date back to Global Environment
  return(today_date)
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;function-one&quot;&gt;Function One&lt;/h2&gt;

&lt;p&gt;This function filters the data by categories.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# will need to load (tidyverse) library 
# search.cat will work in combination of multiple search terms 
# search.cat &amp;lt;- c(&quot;first search term&quot; ,&quot;second search term&quot; , &quot;third search term&quot; )
# example = search.cat &amp;lt;- c(&quot;family&quot; , &quot;nationality&quot;)

cat_filter &amp;lt;- function(data , search.cat ){
  cat_filter &amp;lt;- data%&amp;gt;%
    filter(category == search.cat )
  return(cat_filter)
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;function-two&quot;&gt;Function Two&lt;/h2&gt;

&lt;p&gt;Function that searches variable descriptions for a specific string and returns any variables that match. For example, if I searched for “income” I would want variables like median household income and per capita income.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;search_description &amp;lt;- function(data , keywords) {
  search_description &amp;lt;- grepl(keywords , data$definition , ignore.case =T )
  search.keywords &amp;lt;- data[search_description , c(&quot;root&quot;, &quot;category&quot; ,&quot;definition&quot; )]
  return(search.keywords)
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;function-three&quot;&gt;Function Three&lt;/h2&gt;

&lt;p&gt;Function to filter variables by time periods. Specifically, the user will specify the time periods of interest for the study and the function will identify all variables that have measures for those periods.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;search_years &amp;lt;- function(data, years)
{
  
  # set column names to lowercase
  colnames(data) &amp;lt;- tolower(colnames(data))
  
  # set variables to lowercase
  data &amp;lt;- mutate_all(data, .funs = tolower)
  
  # remove empty strings and white spaces
  data &amp;lt;- data[!grepl(&quot;^\\s+$&quot;, data)]
  
  # replace missing values with NA
  data[ data == &quot;&quot;] &amp;lt;- NA
  
  # select root, root2, category, and definition columns to keep in data set
  columns &amp;lt;- c(&quot;root&quot;, &quot;root2&quot;, &quot;category&quot;, &quot;definition&quot;)
  
  #list strings that we want to remove from our time period column names
  prefix &amp;lt;- c(&quot;x&quot;)
  suffix &amp;lt;- c(&quot;.f&quot;, &quot;.s&quot;)
  
  # select data to keep
  df.years &amp;lt;- data %&amp;gt;%
    select(root, root2, category, definition, contains(years))
  
  #subset data to keep root, root2, and the columns that contain the names of our time period
  #data_cleaned &amp;lt;- data[, c(grepl( paste( c( time.periods, columns), collapse = &quot;|&quot;), colnames(data) )) ]
  
  # remove prefix and suffix from column names
  names &amp;lt;- colnames(df.years) %&amp;gt;%
    str_remove(prefix) %&amp;gt;%
    str_remove(suffix)
  
  # rename columns
  colnames(df.years) &amp;lt;- names
  
  # change years columns to long
  df.years.long &amp;lt;- df.years %&amp;gt;% pivot_longer( !columns, names_to = &quot;year&quot;, values_to = &quot;variable&quot; ) %&amp;gt;% 
    na.omit() %&amp;gt;%
    distinct( root, year, variable)
  
  # create data sets of distinct root and year variables and combine for reference of all possible root/year combinations
  root &amp;lt;- df.years.long %&amp;gt;% distinct(root) %&amp;gt;% select(root)
  year &amp;lt;- df.years.long %&amp;gt;% distinct(year) %&amp;gt;% select(year)
  root_list &amp;lt;- crossing( root, year )
  
  # Left join root_list and df.years.long to identify variables for each year.
  root_variables &amp;lt;- left_join( root_list, df.years.long, by = c( &quot;root&quot;, &quot;year&quot;))
  
  # List of roots with missing variables
  root_missing &amp;lt;- root_variables %&amp;gt;% filter( is.na( variable ) )
  
  # create final dataset
  data_final &amp;lt;- subset(df.years.long, !(df.years.long$root %in% root_missing$root))
  
  # join back to original dataset to add category and definition (and verify accuracy)
  data_final &amp;lt;- left_join(data_final, data, by = &quot;root&quot;) %&amp;gt;%
    select(root, year, variable, category, definition)
  
  return(data_final)
  
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;lab-03-functions&quot;&gt;Lab 03 Functions————————————————————–&lt;/h1&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;build_year &amp;lt;- function( fn1, fn2, year )
{
  
  d1 &amp;lt;- tidy_up_data( fn1 )
  d1 &amp;lt;- dplyr::select( d1, - type )
  
  d2 &amp;lt;- tidy_up_data( fn2 )
  d2 &amp;lt;- dplyr::select( d2, - type )
  
  d3 &amp;lt;- merge( d1, d2, by=c(&quot;year&quot;,&quot;tractid&quot;), all=T )
  
  # store the file path as a character vector
  file.name &amp;lt;- paste0( &quot;data/rodeo/LTDB-&quot;, year, &quot;.rds&quot; )
  # export the object to the file path from above using here::here()
  saveRDS( d3, here::here( file.name ) )
  
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# store relevant raw data files
relevant_files = list.files(here::here(&quot;data/raw&quot;), pattern = &quot;(s|S)td.*.csv&quot;)

# store relevant years
YEARS &amp;lt;- as.character(seq(1970, 2010, 10))

# create empty list
RELEVANT_FILES = list()

# for each relevant year
for (year in YEARS) {
  # extract year specific files
  year_condition = stringr::str_detect(relevant_files, year)
  # subset the relevant files
  year_files = relevant_files[year_condition]
  # subset the fullcount filename
  fullcount_file = year_files[stringr::str_detect(year_files, &quot;fullcount&quot;)]
  # subset the sample filename
  sample_file = year_files[stringr::str_detect(year_files, &quot;sample&quot;)]
  
  # add to the empty list
  RELEVANT_FILES[[year]] = list(
    &quot;year&quot; = year,
    &quot;fullcount&quot; = fullcount_file,
    &quot;sample&quot; = sample_file
  )
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;obtain_crosswalk = function() {
  # store crosswalk URL
  URL &amp;lt;- &quot;https://data.nber.org/cbsa-msa-fips-ssa-county-crosswalk/cbsatocountycrosswalk.csv&quot;
  # read in as data frame
  cw &amp;lt;- read.csv( URL, colClasses=&quot;character&quot; )
  # note in the data dictionary for CBSA Name (copied below): “blanks are rural”
  cw$urban &amp;lt;- ifelse( cw$cbsaname == &quot;&quot;, &quot;rural&quot;, &quot;urban&quot; )
  # store relevant columns
  keep.these &amp;lt;- c( &quot;countyname&quot;,&quot;state&quot;,&quot;fipscounty&quot;, 
                   &quot;msa&quot;,&quot;msaname&quot;, 
                   &quot;cbsa&quot;,&quot;cbsaname&quot;,
                   &quot;urban&quot; )
  # filter the crosswalk
  cw &amp;lt;- dplyr::select( cw, keep.these )
  
  # drop the duplicated fips county codes
  cw &amp;lt;- cw[ ! duplicated(cw$fipscounty) , ]
  
  # save for future use
  saveRDS( cw, here::here( &quot;data/raw/cbsa-crosswalk.rds&quot;) )
  
  # return to user
  return(cw)
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;extract_metadata &amp;lt;- function( file.name )
{
  # store the file path as a character vector
  path &amp;lt;- paste0( &quot;data/raw/&quot;, file.name )
  # import the file using the file path inside of here::here()
  d &amp;lt;- read.csv( here::here( path ), colClasses=&quot;character&quot; )
  type &amp;lt;- ifelse( grepl( &quot;sample&quot;, file.name ), &quot;sample&quot;, &quot;full&quot; )
  year &amp;lt;- substr( file.name, 10, 13 )
  
  # fix names
  d &amp;lt;- fix_names( d )
  
  # fix leading zero problem in tract ids
  d$tractid &amp;lt;- fix_ids( d$tractid )
  
  # drop meta-vars
  keep.these &amp;lt;- c(&quot;tractid&quot;,&quot;state&quot;, &quot;county&quot;, &quot;tract&quot;, &quot;placefp10&quot;,
                  &quot;cbsa10&quot;, &quot;metdiv10&quot;, &quot;ccflag10&quot;,
                  &quot;globd10&quot;, &quot;globg10&quot;,&quot;globd00&quot;, &quot;globg00&quot;,
                  &quot;globd90&quot;, &quot;globg90&quot;,&quot;globd80&quot;, &quot;globg80&quot;)
  d &amp;lt;- d[ names(d) %in% keep.these ]
  return( d )
}

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;make-final-metadata-file&quot;&gt;Make final metadata file.&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;create_final_metadata_file = function(file_names, crosswalk) {
  # filter the crosswalk
  # note: unique ID still persists through the FIPS column
  cw = dplyr::select(crosswalk, -countyname, -state)
  
  # extract metadata for 1980-2000
  md_2000 &amp;lt;- extract_metadata( file.name=file_names[[&quot;2000&quot;]][[&quot;fullcount&quot;]] )
  
  md_1990 &amp;lt;- extract_metadata( file.name=file_names[[&quot;1990&quot;]][[&quot;fullcount&quot;]] )
  md_1990 &amp;lt;- dplyr::select( md_1990, tractid, globd90, globg90 )
  
  md_1980 &amp;lt;- extract_metadata( file.name=file_names[[&quot;1980&quot;]][[&quot;fullcount&quot;]] )
  md_1980 &amp;lt;- dplyr::select( md_1980, tractid, globd80, globg80 )
  
  # merge metadata into one data frame
  # note: these are outer joins, meaning if a record from 2000 isn't found in
  #       in 1990, those &quot;missing&quot; records are still returned
  md_complete &amp;lt;- merge( md_2000, md_1990, all=T )
  md_complete &amp;lt;- merge( md_complete, md_1980, all=T )
  
  # create the fips county column
  # TODO: avoid hard coding index values
  md_complete$fipscounty &amp;lt;- paste0( substr( md_complete$tractid, 6, 7 ),
                                    substr( md_complete$tractid, 9, 11 ) )
  
  # merge fips data onto metadata
  # note: this is a left join, all records from md_complete will be returned
  md_complete_with_cw &amp;lt;- merge( md_complete, 
                                cw, 
                                by=&quot;fipscounty&quot;, 
                                all.x=T )
  
  # save metadata
  saveRDS( md_complete_with_cw, here::here( &quot;data/rodeo/LTDB-META-DATA.rds&quot; ) )
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# find common variables that are in two datasets
compare_dfs &amp;lt;- function( df1, df2 )
{
  # use regular expressions to remove numeric suffixes 
  var.names.1 &amp;lt;- names( df1 )
  var.names.1 &amp;lt;- gsub( &quot;[.][xy]$&quot;, &quot;&quot;, var.names.1 )
  var.names.1 &amp;lt;- gsub( &quot;[0-9]{2}$&quot;, &quot;&quot;, var.names.1 )
  
  var.names.2 &amp;lt;- names( df2 )
  var.names.2 &amp;lt;- gsub( &quot;[.][xy]$&quot;, &quot;&quot;, var.names.2 )
  var.names.2 &amp;lt;- gsub( &quot;[0-9]{2}$&quot;, &quot;&quot;, var.names.2 )
  
  shared &amp;lt;- intersect( var.names.1, var.names.2 ) %&amp;gt;% sort()
  print( &quot;SHARED VARIABLES:&quot;)
  print( shared )
  
  not.shared &amp;lt;- c( setdiff( var.names.1, var.names.2 ),
                   setdiff( var.names.2, var.names.1 ) ) %&amp;gt;% sort()
  
  print( &quot;NOT SHARED:&quot; )
  print( not.shared )
  
  d.vars1 &amp;lt;- data.frame( type=&quot;shared&quot;, variables=shared, stringsAsFactors=F )
  d.vars2 &amp;lt;- data.frame( type=&quot;not shared&quot;, variables=not.shared, stringsAsFactors=F )
  dd &amp;lt;- rbind( d.vars1, d.vars2 )
  
  return( dd )
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;function-to-control-plot-formatting&quot;&gt;Function to control plot() formatting&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;jplot &amp;lt;- function( x1, x2, lab1=&quot;&quot;, lab2=&quot;&quot;, draw.line=T, ... )
{
  
  plot( x1, x2,
        pch=19, 
        col=gray(0.6, alpha = 0.2), 
        cex=2.5,  
        bty = &quot;n&quot;,
        xlab=lab1, 
        ylab=lab2, cex.lab=1.5,
        ... )
  
  if( draw.line==T ){ 
    ok &amp;lt;- is.finite(x1) &amp;amp; is.finite(x2)
    lines( lowess(x2[ok]~x1[ok]), col=&quot;red&quot;, lwd=3 ) }
  
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;wrangle-data-to-create-shapefile-for-chloropleth-map&quot;&gt;Wrangle data to create shapefile for chloropleth map&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# load data
crosswalk &amp;lt;- read.csv( &quot;https://raw.githubusercontent.com/DS4PS/cpp-529-master/master/data/cbsatocountycrosswalk.csv&quot;,  stringsAsFactors=F, colClasses=&quot;character&quot; )

# search for cities names by strings, use the ^ anchor for &quot;begins with&quot; 

grep( &quot;^SAN FRAN&quot;, crosswalk$msaname, value=TRUE ) 
these.sf &amp;lt;- crosswalk$msaname == &quot;SAN FRANCISCO, CA&quot;   # Find San Francisco (T/F)
these.fips &amp;lt;- crosswalk$fipscounty[ these.sf ]         # Find SF counties
these.fips &amp;lt;- na.omit( these.fips )

state.fips &amp;lt;- substr( these.fips, 1, 2 )                    # Substring state code
county.fips &amp;lt;- substr( these.fips, 3, 5 )                   # substring county codes

sf.pop &amp;lt;-
  get_acs( geography = &quot;tract&quot;, variables = &quot;B01003_001&quot;,
           state = &quot;06&quot;, county = county.fips[state.fips==&quot;06&quot;], geometry = TRUE ) %&amp;gt;% 
  select( GEOID, estimate ) %&amp;gt;%
  rename( POP=estimate )
#sanfran.pop$GEOID&amp;lt;-substr(sanfran.pop$GEOID,2,length(sf.pop$GEOID)) # remove leading 0's

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;lab-04-functions&quot;&gt;Lab 04 Functions————————————————————–&lt;/h1&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# load necessary packages 
`%&amp;gt;%` &amp;lt;- magrittr::`%&amp;gt;%`
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# load necessary constants 

# stargazer settings

S_TYPE &amp;lt;- &quot;html&quot;

# inflation rate
INFLATION_RATE &amp;lt;- 1.28855 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;load-custom-functions&quot;&gt;Load custom functions&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# Helper functions for the **pairs()** correlation table 
panel.cor &amp;lt;- function(x, y, digits=2, prefix=&quot;&quot;, cex.cor)
{
  usr &amp;lt;- par(&quot;usr&quot;); on.exit(par(usr))
  par(usr = c(0, 1, 0, 1))
  r &amp;lt;- abs(cor(x, y))
  txt &amp;lt;- format(c(r, 0.123456789), digits=digits)[1]
  txt &amp;lt;- paste(prefix, txt, sep=&quot;&quot;)
  if(missing(cex.cor)) cex &amp;lt;- 0.8/strwidth(txt)
  
  test &amp;lt;- cor.test(x,y)
  # borrowed from printCoefmat
  Signif &amp;lt;- symnum(test$p.value, corr = FALSE, na = FALSE,
                   cutpoints = c(0, 0.001, 0.01, 0.05, 0.1, 1),
                   symbols = c(&quot;***&quot;, &quot;**&quot;, &quot;*&quot;, &quot;.&quot;, &quot; &quot;))
  
  text(0.5, 0.5, txt, cex = 1.5 )
  text(.7, .8, Signif, cex=cex, col=2)
}

panel.smooth &amp;lt;- function (x, y, col = par(&quot;col&quot;), bg = NA, pch = par(&quot;pch&quot;), 
                          cex = 0.5, col.smooth = &quot;red&quot;, span = 2/3, iter = 3, ...) 
{
  points(x, y, pch = 19, col = gray(0.7,0.2), bg = bg, cex = cex)
  ok &amp;lt;- is.finite(x) &amp;amp; is.finite(y)
  if (any(ok)) 
    lines(stats::lowess(x[ok], y[ok], f = span, iter = iter), 
          col = col.smooth, lwd=2, ...)
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# custom plot
jplot &amp;lt;- function( x1, x2, lab1=&quot;&quot;, lab2=&quot;&quot;, draw.line=T, ... )
{
  
  plot( x1, x2,
        pch=19, 
        col=gray(0.6, alpha = 0.2), 
        cex=0.5,  
        bty = &quot;n&quot;,
        xlab=lab1, 
        ylab=lab2, cex.lab=1.5,
        ... )
  
  if( draw.line==T ){ 
    ok &amp;lt;- is.finite(x1) &amp;amp; is.finite(x2)
    lines( lowess(x2[ok]~x1[ok]), col=&quot;red&quot;, lwd=3 ) }
  
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;load-necessary-data&quot;&gt;Load necessary data&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# remember to use the here::here() function
d1 &amp;lt;- readRDS( here::here( &quot;data/rodeo/LTDB-2000.rds&quot; ) )
d2 &amp;lt;- readRDS( here::here( &quot;data/rodeo/LTDB-2010.rds&quot; ) )
md &amp;lt;- readRDS( here::here( &quot;data/rodeo/LTDB-META-DATA.rds&quot; ) )

d1 &amp;lt;- dplyr::select( d1, - year )
d2 &amp;lt;- dplyr::select( d2, - year )

d &amp;lt;- merge( d1, d2, by=&quot;tractid&quot; )
d &amp;lt;- merge( d, md, by=&quot;tractid&quot; )
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;clean-data&quot;&gt;Clean data&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# filter rural districts
d &amp;lt;- dplyr::filter( d, urban == &quot;urban&quot; )

# adjust 2000 home values for inflation 
mhv.00 &amp;lt;- d$mhmval00 * INFLATION_RATE 
mhv.10 &amp;lt;- d$mhmval12

# change in MHV in dollars
mhv.change &amp;lt;- mhv.10 - mhv.00


# drop low 2000 median home values
# to avoid unrealistic growth rates.
#
# tracts with homes that cost less than
# $10,000 are outliers
mhv.00[ mhv.00 &amp;lt; 10000 ] &amp;lt;- NA

# change in MHV in percent
mhv.growth &amp;lt;- 100 * ( mhv.change / mhv.00 )

d$mhv.00 &amp;lt;- mhv.00
d$mhv.10 &amp;lt;- mhv.10
d$mhv.change &amp;lt;- mhv.change
d$mhv.growth &amp;lt;- mhv.growth 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;create-data-sets&quot;&gt;Create data sets&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;d.full &amp;lt;- d
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;d &amp;lt;- dplyr::select( d, tractid, 
                    mhmval00, mhmval12, 
                    hinc00, 
                    hu00, vac00, own00, rent00, h30old00,
                    empclf00, clf00, unemp00, prof00,  
                    dpov00, npov00,
                    ag25up00, hs00, col00, 
                    pop00.x, nhwht00, nhblk00, hisp00, asian00,
                    cbsa, cbsaname,
                    mhv.00, mhv.10, mhv.change, mhv.growth)


d &amp;lt;- 
  d %&amp;gt;%
  dplyr::mutate( p.white = 100 * nhwht00 / pop00.x,
                 p.black = 100 * nhblk00 / pop00.x,
                 p.hisp = 100 * hisp00 / pop00.x, 
                 p.asian = 100 * asian00 / pop00.x,
                 p.hs = 100 * (hs00+col00) / ag25up00,
                 p.col = 100 * col00 / ag25up00,
                 p.prof = 100 * prof00 / empclf00,
                 p.unemp = 100 * unemp00 / clf00,
                 p.vacant = 100 * vac00 / hu00,
                 mhv.change.00.to.10 = mhmval12 - mhmval00,
                 p.mhv.change = 100 * (mhmval12 - mhmval00) / mhmval00,
                 pov.rate = 100 * npov00 / dpov00 )
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# create mini data frame
df &amp;lt;- data.frame( MedianHomeValue2000=mhv.00, 
                  MedianHomeValue2010=mhv.10, 
                  MHV.Change.00.to.10=mhv.change,
                  MHV.Growth.00.to.12=mhv.growth )
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# average growth in median home value for the city
cbsa_stats_df &amp;lt;- 
  d %&amp;gt;%
  dplyr::group_by( cbsaname ) %&amp;gt;%
  dplyr::summarize( metro.mhv.change = median( mhv.change, na.rm=T ),
                    metro.mhv.growth = 100 * median( mhv.growth, na.rm=T ) ) %&amp;gt;%
  dplyr::ungroup() 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;lab-05-functions&quot;&gt;Lab 05 Functions————————————————————–&lt;/h1&gt;

&lt;h2 id=&quot;load-data&quot;&gt;Load Data&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# obtain NMTC data
NMTC_URL &amp;lt;- &quot;https://raw.githubusercontent.com/DS4PS/cpp-528-spr-2020/master/labs/data/raw/NMTC/nmtc-sheet-01.csv&quot;
nmtc &amp;lt;- read.csv( NMTC_URL, stringsAsFactors=F )

# obtain LIHTC data
LIHTC_URL &amp;lt;- &quot;https://raw.githubusercontent.com/DS4PS/cpp-528-spr-2020/master/labs/data/raw/LIHTC/LIHTCPUB.csv&quot;
lihtc &amp;lt;- read.csv( LIHTC_URL, stringsAsFactors=F )

# load census data
d.lab05 &amp;lt;- d.full
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;create-the-difference-in-difference-dataset&quot;&gt;Create the Difference In Difference dataset&lt;/h2&gt;

&lt;h3 id=&quot;create-a-key-that-will-allow-us-to-obtain-federal-data-for-each-tract&quot;&gt;Create a key that will allow us to obtain federal data for each tract&lt;/h3&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# remove anything not a number from the string
d.lab05$id2 &amp;lt;- gsub( &quot;[^0-9]&quot;, &quot;&quot;, d.lab05$tractid )

# fix IDs so they are match
d.lab05$id2 &amp;lt;- as.numeric( d.lab05$id2 )
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;aggregate-federal-programs-such-that-there-is-one-record-per-tract&quot;&gt;Aggregate federal programs such that there is one record per tract&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;lihtc.dollars &amp;lt;-
  lihtc %&amp;gt;% 
  dplyr::filter( yr_alloc &amp;gt;= 2000 &amp;amp; yr_alloc &amp;lt;= 2010 ) %&amp;gt;%
  dplyr::group_by( fips2010 ) %&amp;gt;%
  dplyr::summarize( num.lihtc = dplyr::n(), lihtc.total = sum( allocamt, na.rm=T ) )

# remove dollar sign and commas
nmtc$amount &amp;lt;- gsub( &quot;[,$]&quot;, &quot;&quot;, nmtc$QLICI.Amount ) %&amp;gt;%
  as.numeric( nmtc$amount ) %&amp;gt;% round(0)

nmtc.dollars &amp;lt;- 
  nmtc %&amp;gt;% 
  dplyr::filter( Origination.Year &amp;gt;= 2000 &amp;amp; Origination.Year &amp;lt;= 2010 ) %&amp;gt;%
  dplyr::group_by( X2010.Census.Tract ) %&amp;gt;% 
  dplyr::summarize( num.nmtc = dplyr::n(), nmtc.total = sum( amount, na.rm=T ) )
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;merge-federal-data-onto-census-tracts&quot;&gt;Merge federal data onto census tracts&lt;/h3&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;d.lab05 &amp;lt;- merge( d.lab05, nmtc.dollars, by.x=&quot;id2&quot;, by.y=&quot;X2010.Census.Tract&quot;, all.x=T )
d.lab05 &amp;lt;- merge( d.lab05, lihtc.dollars, by.x=&quot;id2&quot;, by.y=&quot;fips2010&quot;, all.x=T )
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;recode-tracts-and-manipulate-variables&quot;&gt;Recode tracts and manipulate variables&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# recode tracts that had no grants from NA to 0
d.lab05$num.nmtc[ is.na(d.lab05$num.nmtc) ] &amp;lt;- 0
d.lab05$nmtc.total[ is.na(d.lab05$nmtc.total) ] &amp;lt;- 0

d.lab05$num.lihtc[ is.na(d.lab05$num.lihtc) ] &amp;lt;- 0 
d.lab05$lihtc.total[ is.na(d.lab05$lihtc.total) ] &amp;lt;- 0

# adjust 2000 home values for inflation 
mhv.00 &amp;lt;- d.lab05$mhmval00 * INFLATION_RATE  
mhv.10 &amp;lt;- d.lab05$mhmval12

# change in MHV in dollars
mhv.change &amp;lt;- mhv.10 - mhv.00

# drop low year 2000 median home values
# to avoid unrealistic growth rates.
#
# tracts with homes that cost less than
# $10,000 are outliers
# approximately 200 out of 59,000 cases 
mhv.00[ mhv.00 &amp;lt; 10000 ] &amp;lt;- NA

# change in MHV in percent
mhv.growth &amp;lt;- 100 * ( mhv.change / mhv.00 )


# add variables to the main data frame 
d.lab05$mhv.00 &amp;lt;- mhv.00
d.lab05$mhv.10 &amp;lt;- mhv.10
d.lab05$mhv.change &amp;lt;- mhv.change
d.lab05$mhv.growth &amp;lt;- mhv.growth 

# save copy of full d.lab05
d.lab05.full &amp;lt;- d.lab05
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;select-a-few-variables&quot;&gt;Select a few variables&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;d.lab05 &amp;lt;- dplyr::select( d.lab05.full, 
                          
                          tractid, cbsa, cbsaname,            # ids / units of analysis
                          
                          mhv.00, mhv.10, mhv.change, mhv.growth,    # home value 
                          
                          hs00, hs12,  col00, col12, ag25up00, ag25up12,                # education
                          
                          unemp00, unemp12, clf00, clf12,            # employment
                          
                          vac00, vac10, hu00, hu10,                     # housing vacancies
                          
                          mhmval12, mhmval00,                   #median home values (for mutate)
                          
                          npov00, npov12, dpov00, dpov12, hinc00, hinc12,        # income/poverty
                          
                          pop00.x, pop10,  nhwht00, nhwht10,  # population/race
                          
                          num.nmtc, nmtc.total,              # tax policy data
                          num.lihtc, lihtc.total             # aggregated by census tract
                          
) # end select
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;add-control-variables&quot;&gt;Add control variables&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;d.lab05 &amp;lt;- 
  d.lab05 %&amp;gt;%
  dplyr::mutate( p.hs.00 = 100 * (hs00+col00) / ag25up00,
                 p.hs.12 = 100 * (hs12 + col12) / ag25up12,
                 p.unemp.00 = 100 * unemp00 / clf00,
                 p.unemp.12 = 100 * unemp12 / clf12,
                 p.vacant.00 = 100 * vac00 / hu00,
                 p.vacant.10 = 100 * vac10 / hu10,
                 p.white.00 = 100 * nhwht00 / pop00.x,
                 p.white.10 = 100 * nhwht10 / pop10,
                 mhv.change.00.to.10 = mhmval12 - mhmval00,
                 p.mhv.change = 100 * (mhmval12 - mhmval00) / mhmval00,
                 pov.rate.00 = 100 * npov00 / dpov00,
                 pov.rate.12 = 100 * npov12 / dpov12) %&amp;gt;%
  # remove any NA or Inf values
  na.omit(use = &quot;everything&quot;)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;create-new-variables-by-cbsa&quot;&gt;Create new variables by cbsa&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;d.lab05 &amp;lt;-
  d.lab05 %&amp;gt;%
  dplyr::group_by( cbsaname ) %&amp;gt;%
  dplyr::mutate( # metro rank of home value in 2000
    metro.mhv.pct.00 = dplyr::ntile( mhv.00, 100 ),
    # metro rank of home value in 2010
    metro.mhv.pct.10 = dplyr::ntile( mhv.10, 100 ),
    # median pay for metro area 2000
    metro.median.pay.00 = median( hinc00, na.rm=T ),
    # median pay for metro area 2010
    metro.median.pay.10 = median( hinc12, na.rm=T ),
    # tract rank in metro area for diversity (% non-white) 2000
    metro.diversity.rank.00 = dplyr::ntile( (100-p.white.00), 100 ),
    # tract rank in metro area for diversity (% non-white) 2010
    metro.diversity.rank.10 = dplyr::ntile( (100-p.white.10), 100 ),
    # metro total population 2000
    metro.pop.total.00 = sum( pop00.x, na.rm=T ),
    # metro total population 2010
    metro.pop.total.10 = sum( pop10, na.rm=T ) ) %&amp;gt;%
  dplyr::ungroup() %&amp;gt;%
  dplyr::mutate( # change in relative rank of mhv in metro area 2000-2010
    metro.mhv.pctile.change = metro.mhv.pct.10 - metro.mhv.pct.00,
    # growth in ave pay in metro
    metro.pay.change = metro.median.pay.10 - metro.median.pay.00,
    # metro population growth 2000-2010
    metro.pop.growth = ( metro.pop.total.10 - metro.pop.total.00 ) / metro.pop.total.00,
    # increase in the proportion of whites in tract 
    increase.p.white = p.white.10 - p.white.00  )

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;more-cleaning&quot;&gt;More cleaning&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# inflation adjust income  
d.lab05$hinc00 &amp;lt;- INFLATION_RATE * d.lab05$hinc00

# Create a true/false code for recipient tracts 
d.lab05$LIHTC &amp;lt;- ifelse( d.lab05$num.lihtc &amp;gt; 0, &quot;YES&quot;, &quot;NO&quot; )
d.lab05$NMTC &amp;lt;- ifelse( d.lab05$num.nmtc &amp;gt; 0, &quot;YES&quot;, &quot;NO&quot; )

# create a growth column within the data frame 
# omit cases with growth rates above 200%
d.lab05$growth &amp;lt;- d.lab05$mhv.growth
d.lab05$growth[ d.lab05$growth &amp;gt; 200 ] &amp;lt;- NA
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;store-plots-in-a-list-for-easy-access&quot;&gt;Store plots in a list for easy access&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;PLOTS &amp;lt;-
  list(
    &quot;pov_rate_2000&quot; = list(
      &quot;nmtc&quot; = ggplot2::ggplot( d.lab05, ggplot2::aes(x=pov.rate.00, fill=NMTC )) +
        ggplot2::geom_density(alpha=0.4) + 
        ggplot2::ggtitle(&quot;2000 Poverty Rate Comparison of \nRecipient and Non-Recipient Communities&quot;),
      &quot;lihtc&quot; = ggplot2::ggplot( d.lab05, ggplot2::aes(x=pov.rate.00, fill=LIHTC)) +
        ggplot2::geom_density(alpha=0.4) +
        ggplot2::ggtitle(&quot;2000 Poverty Rate Comparison of \nRecipient and Non-Recipient Communities&quot;)
    ),
    &quot;mhv_2000&quot; = list(
      &quot;nmtc&quot; = ggplot2::ggplot( d.lab05, ggplot2::aes(x=log10(mhv.00), fill=NMTC )) +
        ggplot2::geom_density( alpha=0.4 ) +
        ggplot2::ggtitle(&quot;2000 Median Home Value Comparison of \nRecipient and Non-Recipient Communities&quot;),
      &quot;lihtc&quot; = ggplot2::ggplot( d.lab05, ggplot2::aes(x=log10(mhv.00), fill=LIHTC )) +
        ggplot2::geom_density( alpha=0.4 )  +
        ggplot2::ggtitle(&quot;2000 Median Home Value Comparison of \nRecipient and Non-Recipient Communities&quot;)
    ),
    &quot;mhv_growth&quot; = list(
      &quot;nmtc&quot; = ggplot2::ggplot( d.lab05, ggplot2::aes(x=growth, fill=NMTC )) +
        ggplot2::geom_density( alpha=0.4 )  +
        ggplot2::ggtitle(&quot;Comparision of MHV Growth 2000 to 2010: \nRecipients vs Non-Recipients&quot;),
      &quot;lihtc&quot; = ggplot2::ggplot( d.lab05, ggplot2::aes(x=growth, fill=LIHTC )) +
        ggplot2::geom_density( alpha=0.4 )  +
        ggplot2::ggtitle(&quot;Comparision of MHV Growth 2000 to 2010: \nRecipients vs Non-Recipients&quot;)
    )
  )
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;prepare-nmtc-data&quot;&gt;Prepare NMTC data&lt;/h2&gt;

&lt;p&gt;The transformations to create data set d3 are needed to run a difference-in-difference regression model.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# log the variables
y1 &amp;lt;- log( d.lab05$mhv.00 )
y2 &amp;lt;- log( d.lab05$mhv.10 )
lp.vac.00 &amp;lt;- log10( d.lab05$p.vacant.00 + 1)
lp.vac.10 &amp;lt;- log10( d.lab05$p.vacant.10 + 1)
lp.hs.00 &amp;lt;- log10( d.lab05$p.hs.00 + 1)
lp.hs.12 &amp;lt;- log10( d.lab05$p.hs.12 + 1)
lp.unemp.00 &amp;lt;- log10( d.lab05$p.unemp.00 + 1)
lp.unemp.12 &amp;lt;- log10( d.lab05$p.unemp.12 + 1)

# create a variable that identifies if a tract received NMTC funding
nmtc.treat &amp;lt;- as.numeric( d.lab05$num.nmtc &amp;gt; 0 )

# store the year 2000 data
d1 &amp;lt;- data.frame( y=y1, treat=nmtc.treat, post=0 )
# store the year 2010 data
d2 &amp;lt;- data.frame( y=y2, treat=nmtc.treat, post=1 )

# stack the two time periods together
d3 &amp;lt;- rbind( d1, d2 )
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;controls&quot;&gt;Controls&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;#p.vac
d0 &amp;lt;- data.frame( lp.vac.00 = lp.vac.00, lp.vac.10 = lp.vac.10)

d0 &amp;lt;- d0 %&amp;gt;% tidyr::gather(key = &quot;variable_name&quot;,
                           value = &quot;p.vac&quot;)

# diff-in-diff data
d3$p.vac &amp;lt;- d0$p.vac


#p.hs
d0 &amp;lt;- data.frame( lp.hs.00 = lp.hs.00, lp.hs.12 = lp.hs.12)
d0 &amp;lt;- d0 %&amp;gt;% tidyr::gather(key = &quot;variable-name&quot;, value = &quot;p.hs&quot;)

# diff-in-diff data
d3$p.hs &amp;lt;- d0$p.hs


#p.unemp
d0 &amp;lt;- data.frame( lp.unemp.00 = lp.unemp.00, lp.unemp.12 = lp.unemp.12)
d0 &amp;lt;- d0 %&amp;gt;% tidyr::gather(key = &quot;variable-name&quot;, value = &quot;p.unemp&quot;)

# diff-in-diff data
d3$p.unemp &amp;lt;- d0$p.unemp
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;prepare-lihtc-data&quot;&gt;Prepare LIHTC data&lt;/h2&gt;

&lt;p&gt;The transformations to create data set 13 are needed to run a difference-in-difference regression model.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# create a variable that identifies if a tract received LIHTC funding
lihtc.treat &amp;lt;- as.numeric( d.lab05$num.lihtc &amp;gt; 0 )

# store the year 2000 data
l1 &amp;lt;- data.frame( y=y1, treat=lihtc.treat, post=0 )
# store the year 2010 data
l2 &amp;lt;- data.frame( y=y2, treat=lihtc.treat, post=1 )

# stack the two time periods together
l3 &amp;lt;- rbind( l1, l2 )

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;controls-1&quot;&gt;Controls&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;#p.vac
l0 &amp;lt;- data.frame( lp.vac.00 = lp.vac.00, lp.vac.10 = lp.vac.10)

l0 &amp;lt;- l0 %&amp;gt;% tidyr::gather(key = &quot;variable_name&quot;,
                           value = &quot;p.vac&quot;)

# diff-in-diff data
l3$p.vac &amp;lt;- l0$p.vac


#p.hs
l0 &amp;lt;- data.frame( lp.hs.00 = lp.hs.00, lp.hs.12 = lp.hs.12)

l0 &amp;lt;- l0 %&amp;gt;% tidyr::gather(key = &quot;variable_name&quot;,
                           value = &quot;p.hs&quot;)

# diff-in-diff data
l3$p.hs &amp;lt;- l0$p.hs


#p.unemp
l0 &amp;lt;- data.frame( lp.unemp.00 = lp.unemp.00, lp.unemp.12 = lp.unemp.12)

l0 &amp;lt;- l0 %&amp;gt;% tidyr::gather(key = &quot;variable_name&quot;,
                           value = &quot;p.unemp&quot;)

# diff-in-diff data
l3$p.unemp &amp;lt;- l0$p.unemp
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><author><name>Ahmed Rashwan, Alev Yildiz, April Peck, and Erin McIntyre</name></author><summary type="html">Lab 02 Functions————————————————————– Create example function today &amp;lt;- function() { # store today's date today_date &amp;lt;- format(Sys.time(), '%B %d, %Y') # return today's date back to Global Environment return(today_date) }</summary></entry><entry><title type="html">Results and Conclusion</title><link href="https://r-class.github.io/cpp-528-fall-2021-group-01/ch05-results/" rel="alternate" type="text/html" title="Results and Conclusion" /><published>2021-12-03T00:00:00+00:00</published><updated>2021-12-03T00:00:00+00:00</updated><id>https://r-class.github.io/cpp-528-fall-2021-group-01/ch05-results</id><content type="html" xml:base="https://r-class.github.io/cpp-528-fall-2021-group-01/ch05-results/">&lt;h2 id=&quot;metrics-of-neighborhood-change&quot;&gt;Metrics of Neighborhood Change&lt;/h2&gt;

&lt;p&gt;We built a machine-readable data dictionary to allow us to find the variables we need using the following functions: a category function which filters variables by theme or group, a function that searches variable descriptions for a specific string and returns any variables that match, and a function to filter variables by time periods. Creating these functions enabled us to fully utilize the over-time aspects of the data.&lt;/p&gt;

&lt;h2 id=&quot;descriptive-analysis-of-neighborhood-change&quot;&gt;Descriptive Analysis of Neighborhood Change&lt;/h2&gt;

&lt;p&gt;Our results indicate a notable difference in home values between the 1990-2000 period and 2000-2010. The first decade results show that home values were decreased, although minimally (less than $5000 on average, when accounting for inflation). The second decade results indicate that home values were increased by an average of $36000. So, the changes in the 90’s were more evenly distributed, whereas in the 2000’s the distribution was right-skewed, indicating more high-end outliers. San Francisco city was chosen as an example to demonstrate the analysis of neighborhood change. Our results indicate, as with most cities at this time, the inner city tracts had the lowest values and the farther from the city center the tract has higher the median value (with a few exceptions) in 1990’s. The largest changes occur in tracts with above-average home prices in 1990. Tracts with below-average prices continued to drop while those with higher prices increased.&lt;/p&gt;

&lt;h2 id=&quot;predicting-mhv-change&quot;&gt;Predicting MHV Change&lt;/h2&gt;

&lt;p&gt;Our regression models demonstrated that poverty rate is the best predictor of growth in median home value between 2000 and 2010 across all tracts. The effect of poverty rate
is equal across all tracts and does not change depending on the metro area. Percent white is another strong indicator of MHV Growth, however this impact changes across tracts. 
Percent professional employees is another significant variable, but it’s impact is not as great as the other two control variables. All three variables are significantly 
correlated with MHV growth.&lt;/p&gt;

&lt;h2 id=&quot;evaluation-of-tax-credit-programs&quot;&gt;Evaluation of Tax Credit Programs&lt;/h2&gt;

&lt;p&gt;We have worked through and shown the steps taken to analyze the impact for two tax incentive programs: the Low Income Housing Tax Credit (LIHTC) and the New Market Tax Credit (NMTC). Both programs are federally funded programs intended to help low income communities. But do the programs realize an impact on the communities it is intended to help? As seen in Chapter 5, the results vary.&lt;/p&gt;

&lt;p&gt;Between 2000 and 2010, houses rose an average of 51% in value. The NMTC program shows no difference in the treatment and control groups as evidenced by the non-statistically-significant coefficient. The LIHTC program does have a statistically significant coefficient which indicates that houses participating in the program rose an average of .03% &lt;em&gt;more&lt;/em&gt; than non-participating homes for a total of 51.03%. Neither program is having a strong impact, but the LIHTC impact is greater than than the NMTC program.&lt;/p&gt;</content><author><name>Ahmed Rashwan, Alev Yildiz, April Peck, and Erin McIntyre</name></author><summary type="html">Metrics of Neighborhood Change We built a machine-readable data dictionary to allow us to find the variables we need using the following functions: a category function which filters variables by theme or group, a function that searches variable descriptions for a specific string and returns any variables that match, and a function to filter variables by time periods. Creating these functions enabled us to fully utilize the over-time aspects of the data. Descriptive Analysis of Neighborhood Change Our results indicate a notable difference in home values between the 1990-2000 period and 2000-2010. The first decade results show that home values were decreased, although minimally (less than $5000 on average, when accounting for inflation). The second decade results indicate that home values were increased by an average of $36000. So, the changes in the 90’s were more evenly distributed, whereas in the 2000’s the distribution was right-skewed, indicating more high-end outliers. San Francisco city was chosen as an example to demonstrate the analysis of neighborhood change. Our results indicate, as with most cities at this time, the inner city tracts had the lowest values and the farther from the city center the tract has higher the median value (with a few exceptions) in 1990’s. The largest changes occur in tracts with above-average home prices in 1990. Tracts with below-average prices continued to drop while those with higher prices increased. Predicting MHV Change Our regression models demonstrated that poverty rate is the best predictor of growth in median home value between 2000 and 2010 across all tracts. The effect of poverty rate is equal across all tracts and does not change depending on the metro area. Percent white is another strong indicator of MHV Growth, however this impact changes across tracts. Percent professional employees is another significant variable, but it’s impact is not as great as the other two control variables. All three variables are significantly correlated with MHV growth.</summary></entry><entry><title type="html">Evaluation of Tax Credits</title><link href="https://r-class.github.io/cpp-528-fall-2021-group-01/ch04-evaluate_programs/" rel="alternate" type="text/html" title="Evaluation of Tax Credits" /><published>2021-11-14T00:00:00+00:00</published><updated>2021-11-14T00:00:00+00:00</updated><id>https://r-class.github.io/cpp-528-fall-2021-group-01/ch04-evaluate_programs</id><content type="html" xml:base="https://r-class.github.io/cpp-528-fall-2021-group-01/ch04-evaluate_programs/">&lt;p&gt;The following data and packages were loaded for the following analysis:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dplyr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tidycensus&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;magrittr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;scales&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;%&amp;gt;%&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;S_TYPE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;d.lab05&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;df&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;d3&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;l3&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;PLOTS&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# notice the use of here::here() that points to the .R file&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# where all these R objects are created&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;.from&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;analysis/utilities_master.R&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;.character_only&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;TRUE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.lab05&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;overview-of-programs&quot;&gt;Overview of Programs&lt;/h1&gt;

&lt;h4 id=&quot;about-the-new-market-tax-credits-program&quot;&gt;About the New Market Tax Credits Program&lt;/h4&gt;

&lt;p&gt;The NMTC Program enables economically distressed communities to leverage
private investment capital by providing investors with a federal tax
credit. All NMTC investments must meet statutory qualifications for
their investors to be able to claim the tax credit. The vast majority of
NMTC investments are made within statutorily defined “Low-Income
Communities.” Low-Income Communities are census tracts with a poverty
rate of 20 percent or greater, or a median family income at or below 80
percent of the applicable area median family income. In addition to
investments located in Low-Income Communities, investments can qualify
for NMTCs by using other statutory provisions designed to target certain
areas or populations, including provisions for Rural Counties, and
Low-Income Targeted Populations.&lt;/p&gt;

&lt;p&gt;Through the first 15 application rounds of the NMTC Program, the CDFI
Fund has made 1,178 awards, allocating a total of $57.5 billion in tax
credit authority to CDEs through a competitive application process.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/DS4PS/cpp-528-spr-2020/blob/master/labs/data/raw/NMTC/nmtc-sheet-01.csv&quot;&gt;Data download
website&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://watts-college.github.io/cpp-528-fall-2021/labs/lab-05-tutorial.html&quot;&gt;Source&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.cdfifund.gov/programs-training/programs/new-markets-tax-credit&quot;&gt;Additional
Information&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/DS4PS/cpp-528-spr-2020/blob/master/labs/data/raw/NMTC/2019%20NMTC%20Public%20Data%20Release_FY_17-comments%20incorporated_BL%20Edits%20incorporated_Final.pdf&quot;&gt;NMTC Press
Release&lt;/a&gt;&lt;/p&gt;

&lt;h4 id=&quot;about-the-low-income-housing-tax-credits-program&quot;&gt;About the Low Income Housing Tax Credits Program&lt;/h4&gt;

&lt;p&gt;The Low-Income Housing Tax Credit (LIHTC) is the most important resource
for creating affordable housing in the United States today. The LIHTC
database, created by HUD and available to the public since 1997,
contains information on 47,511 projects and 3.13 million housing units
placed in service between 1987 and 2017.&lt;/p&gt;

&lt;p&gt;According to the &lt;a href=&quot;https://www.nhlp.org/resources/how-the-lihtc-program-works/&quot;&gt;National Housing Law
Project&lt;/a&gt;,
the program provides tax credits to developers based on an application
process and goals laid out in the qualified action plan. Developers
agree to rent the units at below-market rates.&lt;/p&gt;

&lt;p&gt;The LIHTC program is not tied to specific census tracts. Rather,
developers are required to make a certain number of units available to
qualified households (lower income than the metro average) at
below-market costs. If they comply with program requirements they
receive tax credits that cover a large proportion of the initial
renovation or construction costs, and the developers can revert rents to
market rates after 15 or 30 years. So if they stick with the program a
large proportion of their real-estate investment gets paid for by
offering reduced rents for a couple of decades, then they hold a
valuable asset at the end of the program.&lt;/p&gt;

&lt;p&gt;Although there are no strict guidelines about where the projects are
built, by design they create higher opportunity costs in wealthier
neighborhoods. The annual rent total is capped at 30% of the average
income of the community (cite). Say this is $1,500 a month. If a
landlord could rent an apartment for $2,000 at a market rate in a middle
income neighborhood, they are losing $500 a month. If they could rent a
similar apartment for $3,000 in a high-income neighborhood, they are now
losing $1,500 a month. As a result of the structure of these incentives
and the opportunity costs of each scenario, developers are better off
building the affordable housing project in a low or middle-income
communities.&lt;/p&gt;

&lt;p&gt;From:
&lt;a href=&quot;https://www.novoco.com/resource-centers/affordable-housing-tax-credits/lihtc-basics/about-lihtc&quot;&gt;https://www.novoco.com/resource-centers/affordable-housing-tax-credits/lihtc-basics/about-lihtc&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/DS4PS/cpp-528-spr-2020/blob/master/labs/data/raw/LIHTC/LIHTCPUB.csv&quot;&gt;Data download
website&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://watts-college.github.io/cpp-528-fall-2021/labs/lab-05-tutorial.html&quot;&gt;Source&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.nhlp.org/resource-center/low-income-housing-tax-credits/&quot;&gt;Additional
Information&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Broad economic principles influence where financed affordable housing
will be built. Tax credit housing is generally located where the land
costs are lower and the tax credit allowable rents are sufficient to
allow for market-rate rents. Economics generally make it more difficult
to build financed housing in major cities because land costs are higher
and low-income rents are substantially below market rate.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So where NMTC place hard limits on the tracts that are eligible for
projects, LIHTC location choices are driven by market dynamics, but
affordable housing projects are more likely to end up in low-income
communities.&lt;/p&gt;

&lt;h4 id=&quot;recipient-and-non-recipient-tracts&quot;&gt;Recipient and Non-Recipient Tracts&lt;/h4&gt;

&lt;p&gt;Here is the hard part about evaluating economic development investments: they try to target the projects that have the greatest potential to
succeed, so by design you have sorted the sample. It’s similar to the
challenge of trying to decide if Harvard provides a better education
than a high-performing public university. Harvard has selected students
that have the highest grades, test scores, early-life achievements, and
privilege. Who can you compare this sample to? You have no similar
counterfactual!&lt;/p&gt;

&lt;p&gt;In this instance, NMTC projects target poor communities, so by design we
expect that program participants (tracts) and non-participants are
different.&lt;/p&gt;

&lt;p&gt;The LIHTC program is different because affordable housing units can be
built anywhere, they just need to cap rents for residents. IN PRACTICE
they tend to go in poor communities because the capped rent will not be
that different from the rent they could have received, and the lower
rents help keep buildings are high occupancy rates. The government&lt;/p&gt;

&lt;p&gt;We can look at some descriptive statistics from 2000 to determine if we
have an apples to oranges type of comparison:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;gridExtra&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;grid.arrange&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PLOTS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov_rate_2000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nmtc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                         &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PLOTS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov_rate_2000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lihtc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                         &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nrow&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/021-11-14-ch04-evaluate_programs_files/figure-gfm/unnamed-chunk-2-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;p&gt;New Market Tax Credit recipients appear to be quite distinct, located in
poorer tracts. We see the LIHTC projects tend to favor tracts with
higher poverty than non-recipient tracts, but a large proportion of the
projects are still located in tracts with low to moderate levels of
poverty.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;gridExtra&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;grid.arrange&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PLOTS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv_2000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nmtc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                         &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PLOTS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv_2000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lihtc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                         &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nrow&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/021-11-14-ch04-evaluate_programs_files/figure-gfm/unnamed-chunk-3-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;h1 id=&quot;evaluating-program-impact&quot;&gt;Evaluating Program Impact&lt;/h1&gt;

&lt;p&gt;Use the difference-in-difference framework introduced in the tutorial to
estimate the impact of each federal program: the NMTC and the LIHTC.&lt;/p&gt;

&lt;p&gt;Use your baseline model predicting tract change from Lab 04 as the
starting point. Create a log-linear diff-in-diff model following these
steps and add your control variables from Lab 04&lt;/p&gt;

&lt;p&gt;NMTC data was added to the dataset using the following code found in the
data manifest:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;### NMTC&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# log the variables&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#y1 &amp;lt;- log( d$mhv.00 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#y2 &amp;lt;- log( d$mhv.10 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#lp.vac.00 &amp;lt;- log10( d$p.vacant.00 + 1)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#lp.vac.10 &amp;lt;- log10( d$p.vacant.10 + 1)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#lp.hs.00 &amp;lt;- log10( d$p.hs.00 + 1)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#p.hs.12 &amp;lt;- log10( d$p.hs.12 + 1)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#lp.unemp.00 &amp;lt;- log10( d$p.unemp.00 + 1)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#lp.unemp.12 &amp;lt;- log10( d$p.unemp.12 + 1)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# create a variable that identifies if a tract received NMTC funding&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#nmtc.treat &amp;lt;- as.numeric( d$num.nmtc &amp;gt; 0 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# store the year 2000 data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d1 &amp;lt;- data.frame( y=y1, treat=nmtc.treat, post=0 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# store the year 2010 data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d2 &amp;lt;- data.frame( y=y2, treat=nmtc.treat, post=1 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# stack the two time periods together&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d3 &amp;lt;- rbind( d1, d2 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# controls ---&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#p.vac&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d0 &amp;lt;- data.frame( lp.vac.00 = lp.vac.00, lp.vac.10 = lp.vac.10)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d0 &amp;lt;- d0 %&amp;gt;% tidyr::gather(key = &quot;variable_name&quot;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#value = &quot;p.vac&quot;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# diff-in-diff data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d3$p.vac &amp;lt;- d0$p.vac&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#p.hs&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d0 &amp;lt;- data.frame( lp.hs.00 = lp.hs.00, lp.hs.12 = lp.hs.12)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d0 &amp;lt;- d0 %&amp;gt;% tidyr::gather(key = &quot;variable-name&quot;, value = &quot;p.hs&quot;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# diff-in-diff data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d3$p.hs &amp;lt;- d0$p.hs&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#p.unemp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d0 &amp;lt;- data.frame( lp.unemp.00 = lp.unemp.00, lp.unemp.12 = lp.unemp.12)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d0 &amp;lt;- d0 %&amp;gt;% tidyr::gather(key = &quot;variable-name&quot;, value = &quot;p.unemp&quot;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# diff-in-diff data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d3$p.unemp &amp;lt;- d0$p.unemp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d3 &amp;lt;- d3 %&amp;gt;% na.omit(use = &quot;everything&quot;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;LIHTC data was added to the dataset with the following code found in the
data manifest:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;### LIHTC&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# variables are already logged&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#y1 &amp;lt;- log( d$mhv.00 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#y2 &amp;lt;- log( d$mhv.10 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#lp.vac.00 &amp;lt;- log10( d$p.vacant.00)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#lp.vac.10 &amp;lt;- log10( d$p.vacant.10)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#lp.hs.00 &amp;lt;- log10( d$p.hs.00)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#lp.hs.12 &amp;lt;- log10( d$p.hs.12)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#lp.unemp.00 &amp;lt;- log10( d$p.unemp.00)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#lp.unemp.12 &amp;lt;- log10( d$p.unemp.12)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# create a variable that identifies if a tract received LIHTC funding&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#lihtc.treat &amp;lt;- as.numeric( d$num.lihtc &amp;gt; 0 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# store the year 2000 data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l1 &amp;lt;- data.frame( y=y1, treat=lihtc.treat, post=0 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# store the year 2010 data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l2 &amp;lt;- data.frame( y=y2, treat=lihtc.treat, post=1 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# stack the two time periods together&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l3 &amp;lt;- rbind( l1, l2 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# controls ---&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#p.vac&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l0 &amp;lt;- data.frame( lp.vac.00 = lp.vac.00, lp.vac.10 = lp.vac.10)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l0 &amp;lt;- l0 %&amp;gt;% tidyr::gather(key = &quot;variable_name&quot;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#value = &quot;p.vac&quot;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# diff-in-diff data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l3$p.vac &amp;lt;- l0$p.vac&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#p.hs&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l0 &amp;lt;- data.frame( lp.hs.00 = lp.hs.00, lp.hs.12 = lp.hs.12)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l0 &amp;lt;- l0 %&amp;gt;% tidyr::gather(key = &quot;variable_name&quot;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#value = &quot;p.hs&quot;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# diff-in-diff data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l3$p.hs &amp;lt;- l0$p.hs&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#p.unemp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l0 &amp;lt;- data.frame( lp.unemp.00 = lp.unemp.00, lp.unemp.12 = lp.unemp.12)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l0 &amp;lt;- l0 %&amp;gt;% tidyr::gather(key = &quot;variable_name&quot;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#value = &quot;p.unemp&quot;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# diff-in-diff data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l3$p.unemp &amp;lt;- l0$p.unemp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#l3 &amp;lt;- l3 %&amp;gt;% na.omit(use = &quot;everything&quot;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;descriptive-statistics&quot;&gt;Descriptive Statistics&lt;/h1&gt;

&lt;p&gt;Let’s take a look at the descriptive statistics for the data:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;S_TYPE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;digits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary.stat&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;min&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;p25&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;median&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;mean&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;p75&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;max&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table style=&quot;text-align:center&quot;&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Statistic

&lt;/td&gt;

&lt;td&gt;

Min

&lt;/td&gt;

&lt;td&gt;

Pctl(25)

&lt;/td&gt;

&lt;td&gt;

Median

&lt;/td&gt;

&lt;td&gt;

Mean

&lt;/td&gt;

&lt;td&gt;

Pctl(75)

&lt;/td&gt;

&lt;td&gt;

Max

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

MedianHomeValue2000

&lt;/td&gt;

&lt;td&gt;

11,167

&lt;/td&gt;

&lt;td&gt;

105,661

&lt;/td&gt;

&lt;td&gt;

154,903

&lt;/td&gt;

&lt;td&gt;

187,129

&lt;/td&gt;

&lt;td&gt;

224,337

&lt;/td&gt;

&lt;td&gt;

1,288,551

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

MedianHomeValue2010

&lt;/td&gt;

&lt;td&gt;

9,999

&lt;/td&gt;

&lt;td&gt;

123,200

&lt;/td&gt;

&lt;td&gt;

193,200

&lt;/td&gt;

&lt;td&gt;

246,570

&lt;/td&gt;

&lt;td&gt;

312,000

&lt;/td&gt;

&lt;td&gt;

1,000,001

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

MHV.Change.00.to.10

&lt;/td&gt;

&lt;td&gt;

\-1,228,651

&lt;/td&gt;

&lt;td&gt;

7,187

&lt;/td&gt;

&lt;td&gt;

36,268

&lt;/td&gt;

&lt;td&gt;

60,047

&lt;/td&gt;

&lt;td&gt;

94,881

&lt;/td&gt;

&lt;td&gt;

1,000,001

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

MHV.Growth.00.to.12

&lt;/td&gt;

&lt;td&gt;

\-97

&lt;/td&gt;

&lt;td&gt;

6

&lt;/td&gt;

&lt;td&gt;

25

&lt;/td&gt;

&lt;td&gt;

33

&lt;/td&gt;

&lt;td&gt;

50

&lt;/td&gt;

&lt;td&gt;

6,059

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;/table&gt;

&lt;h4 id=&quot;change-in-mhv-2000-2010&quot;&gt;Change in MHV 2000-2010&lt;/h4&gt;

&lt;p&gt;If a home worth $10 million increased in value by $100k over ten years
it would not be that surprising. If a home worth $50k increased by $100k
over the same period that is a growth of 200% and is notable.&lt;/p&gt;

&lt;p&gt;The change in value variable only reports absolute change, but does not
provide a sense of whether that is a big or small amount for the census
tract.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;hist&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;breaks&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;xlim&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;-300&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;350&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;yaxt&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;n&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;xaxt&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;n&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;xlab&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Thousand of US Dollars (adjusted to 2010)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cex.lab&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1.5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ylab&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Change in Median Home Value 2000 to 2010&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;gray20&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;border&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;white&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;side&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;at&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;seq&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;-100&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;by&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;paste0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;$&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;seq&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;-100&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;by&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;k&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean.x&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;abline&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;darkorange&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lwd&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lty&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;250&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1500&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;paste0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Mean = &quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dollar&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;darkorange&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cex&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1.4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pos&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median.x&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;abline&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;dodgerblue&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lwd&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lty&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;250&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;paste0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Median = &quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dollar&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;dodgerblue&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cex&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1.4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pos&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/021-11-14-ch04-evaluate_programs_files/figure-gfm/unnamed-chunk-7-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;h4 id=&quot;percent-change-in-mhv-2000-to-2010&quot;&gt;Percent Change in MHV 2000 to 2010&lt;/h4&gt;

&lt;p&gt;The percent change variable provides some context for growth rates of
value in census tracts.&lt;/p&gt;

&lt;p&gt;Plot the percent change variable:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hg&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hist&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;breaks&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;xlim&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;-1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;yaxt&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;n&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;xaxt&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;n&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;xlab&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cex.main&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1.5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ylab&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Growth in Home Value by Census Tract 2000 to 2010&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;gray40&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;border&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;white&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;side&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;at&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;seq&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;-1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;by&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0.5&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;paste0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;seq&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;-100&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;by&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;50&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;%&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ymax&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;max&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hg&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean.x&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;abline&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;darkorange&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lwd&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lty&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0.5&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ymax&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;paste0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Mean = &quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;%&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;darkorange&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cex&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1.8&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pos&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median.x&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;abline&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;dodgerblue&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lwd&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lty&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0.6&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ymax&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;paste0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Median = &quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;%&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
      &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;dodgerblue&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cex&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1.8&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pos&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/021-11-14-ch04-evaluate_programs_files/figure-gfm/unnamed-chunk-8-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;h1 id=&quot;program-participation-criteria&quot;&gt;Program Participation Criteria&lt;/h1&gt;

&lt;p&gt;Not all Census tracts are eligible for both programs. The New Market Tax
Credit program, in particular, is trying to attract private investment
in Census tracts that are considered high-risk because of their current
conditions. The tax credits support activities like real-estate
projects, small business loans, or building rehab that would
traditionally be too expensive or too risky without subsidies (in
theory).&lt;/p&gt;

&lt;p&gt;The real challenging part about this sort of program is there are some
neighborhoods that community developers should not be working in because
the investments are not sustainable. You don’t want to incentivize those
sorts of investments because they tie up capital in projects that are
not sustainable, they raise hopes for the community then let them down,
and they waste government resources.&lt;/p&gt;

&lt;p&gt;Alternatively, there are tracts that would have been lucrative
investments without the tax credits. If there are enough of these (maybe
the economy is going through a long period of expansion so investors
have extra capital that they need to invest), then all of the program
funds might be captured by projects that would have happened without the
nudge. The program is just padding the margins for developers, but not
catalyzing any new growth.&lt;/p&gt;

&lt;p&gt;And then there are the goldilocks cases where the community is a pretty
good investment, but not lucrative enough to attract purely private
sector actors. The tax credits are just enough to offset some of the
risks, and projects will happen that would not have without the program.&lt;/p&gt;

&lt;p&gt;If you are too narrow in the qualification criteria you could end up in
the first scenario (too many unsustainable investments in unstable
communities, thus low impact). If you are too broad you can end up in
the second secenario (tax credits supporting investments in stable
neighborhoods that would have attracted capital without the program).
The best case is a criteria that results in the most grants in the third
scenario - sustainable projects that would not have happened without the
tax credits.&lt;/p&gt;

&lt;p&gt;The fact that private investors have a lot of capital in the projects
ensures that they are not simply taking free government money. The tax
credits are typically claimed after they spend the money in the
community, and thus are invested in projects that they need to be
successful to generate a profit. So some incentives are aligned.&lt;/p&gt;

&lt;p&gt;The program participation criteria define which census tracts are
eligible, and will greatly shape where the program dollars (tax credits)
are allocated.&lt;/p&gt;

&lt;h4 id=&quot;recipient-and-non-recipient-tracts-1&quot;&gt;Recipient and Non-Recipient Tracts:&lt;/h4&gt;

&lt;p&gt;Here is the hard part about evaluating economic development investments: they try to target the projects that have the greatest potential to
succeed, so by design you have sorted the sample. It’s similar to the
challenge of trying to decide if Harvard provides a better education
than a high-performing public university. Harvard has selected students
that have the highest grades, test scores, early-life achievements, and
privilege. Who can you compare this sample to? You have no similar
counterfactual!&lt;/p&gt;

&lt;p&gt;In this instance, NMTC projects target poor communities, so by design we
expect that program participants (tracts) and non-participants are
different.&lt;/p&gt;

&lt;p&gt;The LIHTC program is different because affordable housing units can be
built anywhere, they just need to cap rents for residents. IN PRACTICE
they tend to go in poor communities because the capped rent will not be
that different from the rent they could have received, and the lower
rents help keep buildings are high occupancy rates. The government&lt;/p&gt;

&lt;p&gt;We can look at some descriptive statistics from 2000 to determine if we
have an apples to oranges type of comparison:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;### POVERTY RATES&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gridExtra&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;grid.arrange&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PLOTS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov_rate_2000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nmtc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                         &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PLOTS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov_rate_2000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lihtc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                         &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nrow&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/021-11-14-ch04-evaluate_programs_files/figure-gfm/unnamed-chunk-9-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;p&gt;New Market Tax Credit recipients appear to be quite distinct, located in
poorer tracts. We see the LIHTC projects tend to favor tracts with
higher poverty than non-recipient tracts, but a large proportion of the
projects are still located in tracts with low to moderate levels of
poverty.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;### HOME VALUES&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gridExtra&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;grid.arrange&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PLOTS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv_2000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nmtc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                         &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PLOTS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv_2000&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lihtc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                         &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nrow&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/021-11-14-ch04-evaluate_programs_files/figure-gfm/unnamed-chunk-10-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;h4 id=&quot;apples-to-oranges&quot;&gt;Apples to Oranges:&lt;/h4&gt;

&lt;p&gt;When comparing recipient tracts to non-recipient tracts we can see very
clearly that they are different. The degree depends on the program, NMTC
seem to be very distinctive, and LIHTC still different but not as
pronounced.&lt;/p&gt;

&lt;p&gt;Here are some more summary statistics comparing the two:&lt;/p&gt;

&lt;h4 id=&quot;household-income-2000&quot;&gt;Household Income 2000:&lt;/h4&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;### HOUSEHOLD INCOME COMPARISONIN 2000:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;### PROGRAM RECIPIENTS VS NON-RECIPIENT TRACTS&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that received LIHTC&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hinc00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.lihtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;[1] 47302.67&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that did not &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hinc00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.lihtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;[1] 63789.2&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that received NMTC&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hinc00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.nmtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;[1] 35787.47&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that did not &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hinc00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.nmtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;[1] 62259.09&lt;/p&gt;

&lt;h4 id=&quot;home-value-2000&quot;&gt;Home Value 2000:&lt;/h4&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;### MEDIAN HOME VALUE COMPARISON IN 2000&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that received LIHTC&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.lihtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;[1] 156532.2&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that did not &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.lihtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;[1] 192119.9&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that received NMTC&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.nmtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;[1] 146669.4&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that did not &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.nmtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;[1] 188380.1&lt;/p&gt;

&lt;h4 id=&quot;poverty-rates-2000&quot;&gt;Poverty Rates 2000:&lt;/h4&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;### POVERTY RATE COMPARISONS&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that received LIHTC&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate.00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.lihtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Min.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;1st Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Median&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Mean&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;3rd Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Max.&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.977&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.87&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;19.34&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;28.55&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;88.21&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that did not &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate.00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.lihtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Min.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;1st Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Median&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Mean&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;3rd Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Max.&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.144&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.766&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;11.2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14.71&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;100&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that received NMTC&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate.00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.nmtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Min.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;1st Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Median&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Mean&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;3rd Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Max.&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;17.74&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;26.11&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;27.29&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;34.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;93.17&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that did not &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate.00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.nmtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Min.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;1st Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Median&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Mean&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;3rd Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Max.&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.335&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8.217&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;11.89&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.77&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;100&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;And examining the DV of MHV growth rates to get a sense of the
distribution of the outcome prior to running regression models:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;### MHV Growth Rates (DV in Model)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gridExtra&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;grid.arrange&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PLOTS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv_growth&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lihtc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                         &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PLOTS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv_growth&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nmtc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
                         &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nrow&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/021-11-14-ch04-evaluate_programs_files/figure-gfm/unnamed-chunk-14-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;p&gt;LIHTC on the left is a little ambiguous because there is more density
for program participant tracts in the right tail (evidence of higher
growth for the treatment), but also some more density in the peak left
of the distribution for non-participant tracts. Visually it’s hard to
assess.&lt;/p&gt;

&lt;p&gt;NMTC, on the other hand, look better off because of the large amount of
density in the right-hand tail.&lt;/p&gt;

&lt;p&gt;We can confirm these with some descriptive statistics of home value
growth rates:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that received LIHTC&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;growth&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.lihtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Min.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;1st Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Median&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Mean&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;3rd Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Max.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;NA’s&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;-88.97&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.216&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;23.01&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;29.82&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;48.74&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;199.7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;115&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that did not &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;growth&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.lihtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Min.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;1st Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Median&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Mean&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;3rd Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Max.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;NA’s&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;-96.89&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5.96&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;25.15&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;29.31&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;48.68&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;199.6&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;386&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that received NMTC&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;growth&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.nmtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Min.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;1st Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Median&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Mean&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;3rd Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Max.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;NA’s&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;-94.55&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.99&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33.59&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;39.64&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;62.97&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;199.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;56&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Tracts that did not&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;growth&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.nmtc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Min.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;1st Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Median&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Mean&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;3rd Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Max.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;NA’s&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;-96.89&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5.587&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;24.7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;29.09&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;48.36&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;199.7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;445&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Home value growth rates for LIHTC program participant and
non-participant tracts are almost the same.&lt;/p&gt;

&lt;p&gt;Home value growth rates for NMTC participants are significant higher
than non-participant tracts. These are &lt;strong&gt;unconditional means&lt;/strong&gt; with no
real counterfactual, so we still need to create an evaluation framework.
But they offer some suggestive evidence.&lt;/p&gt;

&lt;h1 id=&quot;report--interpret&quot;&gt;Report &amp;amp; Interpret&lt;/h1&gt;

&lt;p&gt;Report and interpret the main results from the models. Are the programs
effective at catalyzing neighborhood improvement? We are assuming median
home value captures the increased market demand that reflects the
desirability of improvements.&lt;/p&gt;

&lt;h3 id=&quot;nmtc&quot;&gt;NMTC&lt;/h3&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# create the difference in difference model&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# note: treat = B1, post = B2, treat*post = B3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;treat&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;post&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.vac&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.hs&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.unemp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;treat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;post&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;TRUE&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# display model results&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                     &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;S_TYPE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                     &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;digits&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table style=&quot;text-align:center&quot;&gt;

&lt;tr&gt;

&lt;td colspan=&quot;2&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;em&gt;Dependent variable:&lt;/em&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td colspan=&quot;1&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

y

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;2&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

treat

&lt;/td&gt;

&lt;td&gt;

0.03&lt;sup&gt;\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.01)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

post

&lt;/td&gt;

&lt;td&gt;

0.51&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.004)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.vac

&lt;/td&gt;

&lt;td&gt;

\-0.78&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.01)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.hs

&lt;/td&gt;

&lt;td&gt;

1.65&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.03)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.unemp

&lt;/td&gt;

&lt;td&gt;

\-0.76&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.01)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

treat:post

&lt;/td&gt;

&lt;td&gt;

\-0.003

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.02)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Constant

&lt;/td&gt;

&lt;td&gt;

10.09&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.06)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;2&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Observations

&lt;/td&gt;

&lt;td&gt;

118,120

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

R&lt;sup&gt;2&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

0.28

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Adjusted R&lt;sup&gt;2&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

0.28

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Residual Std. Error

&lt;/td&gt;

&lt;td&gt;

0.55 (df = 118113)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

F Statistic

&lt;/td&gt;

&lt;td&gt;

7,514.34&lt;sup&gt;\*\*\*&lt;/sup&gt; (df = 6; 118113)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;2&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;em&gt;Note:&lt;/em&gt;

&lt;/td&gt;

&lt;td style=&quot;text-align:right&quot;&gt;

&lt;sup&gt;*&lt;/sup&gt;p\&amp;lt;0.1; &lt;sup&gt;**&lt;/sup&gt;p\&amp;lt;0.05; &lt;sup&gt;***&lt;/sup&gt;p\&amp;lt;0.01

&lt;/td&gt;

&lt;/tr&gt;

&lt;/table&gt;

&lt;p&gt;Houses, on average, had a 51% increase during the treatment period (2000 - 2010). Although the post-treatment coefficient is different than 1, it
is not statistically significant, indicating the NMTC program is not
effective.&lt;/p&gt;

&lt;h3 id=&quot;lihtc&quot;&gt;LIHTC&lt;/h3&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# create the difference in difference model&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# note: treat = B1, post = B2, treat*post = B3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;treat&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;post&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.vac&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.hs&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.unemp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;treat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;post&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;l3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# display model results&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                     &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;S_TYPE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                     &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;digits&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table style=&quot;text-align:center&quot;&gt;

&lt;tr&gt;

&lt;td colspan=&quot;2&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;em&gt;Dependent variable:&lt;/em&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td colspan=&quot;1&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

y

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;2&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

treat

&lt;/td&gt;

&lt;td&gt;

\-0.05&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.01)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

post

&lt;/td&gt;

&lt;td&gt;

0.51&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.004)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.vac

&lt;/td&gt;

&lt;td&gt;

\-0.77&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.01)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.hs

&lt;/td&gt;

&lt;td&gt;

1.67&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.03)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.unemp

&lt;/td&gt;

&lt;td&gt;

\-0.74&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.01)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

treat:post

&lt;/td&gt;

&lt;td&gt;

\-0.03&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.01)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Constant

&lt;/td&gt;

&lt;td&gt;

10.05&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.06)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;2&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Observations

&lt;/td&gt;

&lt;td&gt;

118,120

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

R&lt;sup&gt;2&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

0.28

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Adjusted R&lt;sup&gt;2&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

0.28

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Residual Std. Error

&lt;/td&gt;

&lt;td&gt;

0.55 (df = 118113)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

F Statistic

&lt;/td&gt;

&lt;td&gt;

7,562.27&lt;sup&gt;\*\*\*&lt;/sup&gt; (df = 6; 118113)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;2&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;em&gt;Note:&lt;/em&gt;

&lt;/td&gt;

&lt;td style=&quot;text-align:right&quot;&gt;

&lt;sup&gt;*&lt;/sup&gt;p\&amp;lt;0.1; &lt;sup&gt;**&lt;/sup&gt;p\&amp;lt;0.05; &lt;sup&gt;***&lt;/sup&gt;p\&amp;lt;0.01

&lt;/td&gt;

&lt;/tr&gt;

&lt;/table&gt;

&lt;p&gt;With the LIHTC program, the post-treatment coefficient is statistically
significant, but housing values rose, on average, by .03% less than
houses in the control group.&lt;/p&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Community Development Financial Institutions Fund, “New Markets Tax Credit (NMTC) Public Data Release”, November 2019. Available from “https://github.com/DS4PS/cpp-528-spr-2020/blob/master/labs/data/raw/NMTC/2019%20NMTC%20Public%20Data%20Release_FY_17-comments%20incorporated_BL%20Edits%20incorporated_Final.pdf”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Community Develoopment Financial Institutions Fund, “New Markets Tax Credit Program”, 2021, available from https://www.cdfifund.gov/programs-training/programs/new-markets-tax-credit&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;HUD User Datasets , “LOW-INCOME HOUSING TAX CREDIT (LIHTC)” , 2018 , Web. 15 November 2021. Available from “https://www.huduser.gov/portal/datasets/lihtc.html”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;National Housing Law Project, “How the LIGHTS program works”, 7 September 2017. Available from “https://www.nhlp.org/resources/how-the-lihtc-program-works/”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;National Housing Law Project, “Low-income Housing Tax Credits”, 2022. Available from “https://www.nhlp.org/resource-center/low-income-housing-tax-credits/”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Novocradac , “Affordable Housing Resource Center” , 1993 , Web. 16 November 2021, Available from “https://www.novoco.com/resource-centers/affordable-housing-tax-credits/lihtc-basics/about-lihtc”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;OFFICE OF POLICY DEVELOPMENT AND RESEARCH (PD&amp;amp;R), “Income limit information for LIHTC projects” , April 1, 2021  , Web. 15 November 2021. Available from “https://www.huduser.gov/portal/datasets/il.html#2021_faq”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Watts-College , “Tutorial on Adding Federal Program Data” , October 29, 2021 , Web. 16 November 2021. Available from “https://watts-college.github.io/cpp-528-fall-2021/labs/lab-05-tutorial.html”&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;</content><author><name>Ahmed Rashwan, Alev Yildiz, April Peck, and Erin McIntyre</name></author><summary type="html">The following data and packages were loaded for the following analysis: library(pander) library(stargazer) library(here) library(dplyr) library(tidycensus) library(magrittr) library(scales) import::here(&quot;%&amp;gt;%&quot;, &quot;S_TYPE&quot;, &quot;d.lab05&quot;, &quot;df&quot;, &quot;d3&quot;, &quot;l3&quot;, &quot;PLOTS&quot;, # notice the use of here::here() that points to the .R file # where all these R objects are created .from = here::here(&quot;analysis/utilities_master.R&quot;), .character_only = TRUE) d &amp;lt;- d.lab05 Overview of Programs About the New Market Tax Credits Program The NMTC Program enables economically distressed communities to leverage private investment capital by providing investors with a federal tax credit. All NMTC investments must meet statutory qualifications for their investors to be able to claim the tax credit. The vast majority of NMTC investments are made within statutorily defined “Low-Income Communities.” Low-Income Communities are census tracts with a poverty rate of 20 percent or greater, or a median family income at or below 80 percent of the applicable area median family income. In addition to investments located in Low-Income Communities, investments can qualify for NMTCs by using other statutory provisions designed to target certain areas or populations, including provisions for Rural Counties, and Low-Income Targeted Populations. Through the first 15 application rounds of the NMTC Program, the CDFI Fund has made 1,178 awards, allocating a total of $57.5 billion in tax credit authority to CDEs through a competitive application process. Data download website Source Additional Information NMTC Press Release About the Low Income Housing Tax Credits Program The Low-Income Housing Tax Credit (LIHTC) is the most important resource for creating affordable housing in the United States today. The LIHTC database, created by HUD and available to the public since 1997, contains information on 47,511 projects and 3.13 million housing units placed in service between 1987 and 2017. According to the National Housing Law Project, the program provides tax credits to developers based on an application process and goals laid out in the qualified action plan. Developers agree to rent the units at below-market rates. The LIHTC program is not tied to specific census tracts. Rather, developers are required to make a certain number of units available to qualified households (lower income than the metro average) at below-market costs. If they comply with program requirements they receive tax credits that cover a large proportion of the initial renovation or construction costs, and the developers can revert rents to market rates after 15 or 30 years. So if they stick with the program a large proportion of their real-estate investment gets paid for by offering reduced rents for a couple of decades, then they hold a valuable asset at the end of the program. Although there are no strict guidelines about where the projects are built, by design they create higher opportunity costs in wealthier neighborhoods. The annual rent total is capped at 30% of the average income of the community (cite). Say this is $1,500 a month. If a landlord could rent an apartment for $2,000 at a market rate in a middle income neighborhood, they are losing $500 a month. If they could rent a similar apartment for $3,000 in a high-income neighborhood, they are now losing $1,500 a month. As a result of the structure of these incentives and the opportunity costs of each scenario, developers are better off building the affordable housing project in a low or middle-income communities. From: https://www.novoco.com/resource-centers/affordable-housing-tax-credits/lihtc-basics/about-lihtc Data download website Source Additional Information Broad economic principles influence where financed affordable housing will be built. Tax credit housing is generally located where the land costs are lower and the tax credit allowable rents are sufficient to allow for market-rate rents. Economics generally make it more difficult to build financed housing in major cities because land costs are higher and low-income rents are substantially below market rate. So where NMTC place hard limits on the tracts that are eligible for projects, LIHTC location choices are driven by market dynamics, but affordable housing projects are more likely to end up in low-income communities. Recipient and Non-Recipient Tracts Here is the hard part about evaluating economic development investments: they try to target the projects that have the greatest potential to succeed, so by design you have sorted the sample. It’s similar to the challenge of trying to decide if Harvard provides a better education than a high-performing public university. Harvard has selected students that have the highest grades, test scores, early-life achievements, and privilege. Who can you compare this sample to? You have no similar counterfactual! In this instance, NMTC projects target poor communities, so by design we expect that program participants (tracts) and non-participants are different. The LIHTC program is different because affordable housing units can be built anywhere, they just need to cap rents for residents. IN PRACTICE they tend to go in poor communities because the capped rent will not be that different from the rent they could have received, and the lower rents help keep buildings are high occupancy rates. The government We can look at some descriptive statistics from 2000 to determine if we have an apples to oranges type of comparison: gridExtra::grid.arrange( PLOTS$pov_rate_2000$nmtc, PLOTS$pov_rate_2000$lihtc, nrow = 1 ) New Market Tax Credit recipients appear to be quite distinct, located in poorer tracts. We see the LIHTC projects tend to favor tracts with higher poverty than non-recipient tracts, but a large proportion of the projects are still located in tracts with low to moderate levels of poverty. gridExtra::grid.arrange( PLOTS$mhv_2000$nmtc, PLOTS$mhv_2000$lihtc, nrow = 1 ) Evaluating Program Impact Use the difference-in-difference framework introduced in the tutorial to estimate the impact of each federal program: the NMTC and the LIHTC. Use your baseline model predicting tract change from Lab 04 as the starting point. Create a log-linear diff-in-diff model following these steps and add your control variables from Lab 04 NMTC data was added to the dataset using the following code found in the data manifest: ### NMTC # log the variables #y1 &amp;lt;- log( d$mhv.00 ) #y2 &amp;lt;- log( d$mhv.10 ) #lp.vac.00 &amp;lt;- log10( d$p.vacant.00 + 1) #lp.vac.10 &amp;lt;- log10( d$p.vacant.10 + 1) #lp.hs.00 &amp;lt;- log10( d$p.hs.00 + 1) #p.hs.12 &amp;lt;- log10( d$p.hs.12 + 1) #lp.unemp.00 &amp;lt;- log10( d$p.unemp.00 + 1) #lp.unemp.12 &amp;lt;- log10( d$p.unemp.12 + 1) # create a variable that identifies if a tract received NMTC funding #nmtc.treat &amp;lt;- as.numeric( d$num.nmtc &amp;gt; 0 ) # store the year 2000 data #d1 &amp;lt;- data.frame( y=y1, treat=nmtc.treat, post=0 ) # store the year 2010 data #d2 &amp;lt;- data.frame( y=y2, treat=nmtc.treat, post=1 ) # stack the two time periods together #d3 &amp;lt;- rbind( d1, d2 ) # controls --- #p.vac #d0 &amp;lt;- data.frame( lp.vac.00 = lp.vac.00, lp.vac.10 = lp.vac.10) #d0 &amp;lt;- d0 %&amp;gt;% tidyr::gather(key = &quot;variable_name&quot;, #value = &quot;p.vac&quot;) # diff-in-diff data #d3$p.vac &amp;lt;- d0$p.vac #p.hs #d0 &amp;lt;- data.frame( lp.hs.00 = lp.hs.00, lp.hs.12 = lp.hs.12) #d0 &amp;lt;- d0 %&amp;gt;% tidyr::gather(key = &quot;variable-name&quot;, value = &quot;p.hs&quot;) # diff-in-diff data #d3$p.hs &amp;lt;- d0$p.hs #p.unemp #d0 &amp;lt;- data.frame( lp.unemp.00 = lp.unemp.00, lp.unemp.12 = lp.unemp.12) #d0 &amp;lt;- d0 %&amp;gt;% tidyr::gather(key = &quot;variable-name&quot;, value = &quot;p.unemp&quot;) # diff-in-diff data #d3$p.unemp &amp;lt;- d0$p.unemp #d3 &amp;lt;- d3 %&amp;gt;% na.omit(use = &quot;everything&quot;) LIHTC data was added to the dataset with the following code found in the data manifest: ### LIHTC # variables are already logged #y1 &amp;lt;- log( d$mhv.00 ) #y2 &amp;lt;- log( d$mhv.10 ) #lp.vac.00 &amp;lt;- log10( d$p.vacant.00) #lp.vac.10 &amp;lt;- log10( d$p.vacant.10) #lp.hs.00 &amp;lt;- log10( d$p.hs.00) #lp.hs.12 &amp;lt;- log10( d$p.hs.12) #lp.unemp.00 &amp;lt;- log10( d$p.unemp.00) #lp.unemp.12 &amp;lt;- log10( d$p.unemp.12) # create a variable that identifies if a tract received LIHTC funding #lihtc.treat &amp;lt;- as.numeric( d$num.lihtc &amp;gt; 0 ) # store the year 2000 data #l1 &amp;lt;- data.frame( y=y1, treat=lihtc.treat, post=0 ) # store the year 2010 data #l2 &amp;lt;- data.frame( y=y2, treat=lihtc.treat, post=1 ) # stack the two time periods together #l3 &amp;lt;- rbind( l1, l2 ) # controls --- #p.vac #l0 &amp;lt;- data.frame( lp.vac.00 = lp.vac.00, lp.vac.10 = lp.vac.10) #l0 &amp;lt;- l0 %&amp;gt;% tidyr::gather(key = &quot;variable_name&quot;, #value = &quot;p.vac&quot;) # diff-in-diff data #l3$p.vac &amp;lt;- l0$p.vac #p.hs #l0 &amp;lt;- data.frame( lp.hs.00 = lp.hs.00, lp.hs.12 = lp.hs.12) #l0 &amp;lt;- l0 %&amp;gt;% tidyr::gather(key = &quot;variable_name&quot;, #value = &quot;p.hs&quot;) # diff-in-diff data #l3$p.hs &amp;lt;- l0$p.hs #p.unemp #l0 &amp;lt;- data.frame( lp.unemp.00 = lp.unemp.00, lp.unemp.12 = lp.unemp.12) #l0 &amp;lt;- l0 %&amp;gt;% tidyr::gather(key = &quot;variable_name&quot;, #value = &quot;p.unemp&quot;) # diff-in-diff data #l3$p.unemp &amp;lt;- l0$p.unemp #l3 &amp;lt;- l3 %&amp;gt;% na.omit(use = &quot;everything&quot;) Descriptive Statistics Let’s take a look at the descriptive statistics for the data: stargazer::stargazer( df, type=S_TYPE, digits=0, summary.stat = c(&quot;min&quot;, &quot;p25&quot;,&quot;median&quot;,&quot;mean&quot;,&quot;p75&quot;,&quot;max&quot;) ) Statistic Min Pctl(25) Median Mean Pctl(75) Max MedianHomeValue2000 11,167 105,661 154,903 187,129 224,337 1,288,551 MedianHomeValue2010 9,999 123,200 193,200 246,570 312,000 1,000,001 MHV.Change.00.to.10 \-1,228,651 7,187 36,268 60,047 94,881 1,000,001 MHV.Growth.00.to.12 \-97 6 25 33 50 6,059 Change in MHV 2000-2010 If a home worth $10 million increased in value by $100k over ten years it would not be that surprising. If a home worth $50k increased by $100k over the same period that is a growth of 200% and is notable. The change in value variable only reports absolute change, but does not provide a sense of whether that is a big or small amount for the census tract. hist( d$mhv.change/1000, breaks=500, xlim=c(-300,350), yaxt=&quot;n&quot;, xaxt=&quot;n&quot;, xlab=&quot;Thousand of US Dollars (adjusted to 2010)&quot;, cex.lab=1.5, ylab=&quot;&quot;, main=&quot;Change in Median Home Value 2000 to 2010&quot;, col=&quot;gray20&quot;, border=&quot;white&quot; ) axis( side=1, at=seq( from=-100, to=500, by=100 ), labels=paste0( &quot;$&quot;, seq( from=-100, to=500, by=100 ), &quot;k&quot; ) ) mean.x &amp;lt;- mean( d$mhv.change/1000, na.rm=T ) abline( v=mean.x, col=&quot;darkorange&quot;, lwd=2, lty=2 ) text( x=250, y=1500, labels=paste0( &quot;Mean = &quot;, dollar( round(1000*mean.x,0)) ), col=&quot;darkorange&quot;, cex=1.4, pos=3 ) median.x &amp;lt;- median( d$mhv.change/1000, na.rm=T ) abline( v=median.x, col=&quot;dodgerblue&quot;, lwd=2, lty=2 ) text( x=250, y=2000, labels=paste0( &quot;Median = &quot;, dollar( round(1000*median.x,0)) ), col=&quot;dodgerblue&quot;, cex=1.4, pos=3 ) Percent Change in MHV 2000 to 2010 The percent change variable provides some context for growth rates of value in census tracts. Plot the percent change variable: pct.change &amp;lt;- d$mhv.change / d$mhv.00 hg &amp;lt;- hist( pct.change, breaks=2000, xlim=c(-1,2), yaxt=&quot;n&quot;, xaxt=&quot;n&quot;, xlab=&quot;&quot;, cex.main=1.5, ylab=&quot;&quot;, main=&quot;Growth in Home Value by Census Tract 2000 to 2010&quot;, col=&quot;gray40&quot;, border=&quot;white&quot; ) axis( side=1, at=seq( from=-1, to=2, by=0.5 ), labels=paste0( seq( from=-100, to=200, by=50 ), &quot;%&quot; ) ) ymax &amp;lt;- max( hg$count ) mean.x &amp;lt;- mean( pct.change, na.rm=T ) abline( v=mean.x, col=&quot;darkorange&quot;, lwd=2, lty=2 ) text( x=1, y=(0.5*ymax), labels=paste0( &quot;Mean = &quot;, round(100*mean.x,0), &quot;%&quot;), col=&quot;darkorange&quot;, cex=1.8, pos=4 ) median.x &amp;lt;- median( pct.change, na.rm=T ) abline( v=median.x, col=&quot;dodgerblue&quot;, lwd=2, lty=2 ) text( x=1, y=(0.6*ymax), labels=paste0( &quot;Median = &quot;, round(100*median.x,0), &quot;%&quot;), col=&quot;dodgerblue&quot;, cex=1.8, pos=4 ) Program Participation Criteria Not all Census tracts are eligible for both programs. The New Market Tax Credit program, in particular, is trying to attract private investment in Census tracts that are considered high-risk because of their current conditions. The tax credits support activities like real-estate projects, small business loans, or building rehab that would traditionally be too expensive or too risky without subsidies (in theory). The real challenging part about this sort of program is there are some neighborhoods that community developers should not be working in because the investments are not sustainable. You don’t want to incentivize those sorts of investments because they tie up capital in projects that are not sustainable, they raise hopes for the community then let them down, and they waste government resources. Alternatively, there are tracts that would have been lucrative investments without the tax credits. If there are enough of these (maybe the economy is going through a long period of expansion so investors have extra capital that they need to invest), then all of the program funds might be captured by projects that would have happened without the nudge. The program is just padding the margins for developers, but not catalyzing any new growth. And then there are the goldilocks cases where the community is a pretty good investment, but not lucrative enough to attract purely private sector actors. The tax credits are just enough to offset some of the risks, and projects will happen that would not have without the program. If you are too narrow in the qualification criteria you could end up in the first scenario (too many unsustainable investments in unstable communities, thus low impact). If you are too broad you can end up in the second secenario (tax credits supporting investments in stable neighborhoods that would have attracted capital without the program). The best case is a criteria that results in the most grants in the third scenario - sustainable projects that would not have happened without the tax credits. The fact that private investors have a lot of capital in the projects ensures that they are not simply taking free government money. The tax credits are typically claimed after they spend the money in the community, and thus are invested in projects that they need to be successful to generate a profit. So some incentives are aligned. The program participation criteria define which census tracts are eligible, and will greatly shape where the program dollars (tax credits) are allocated. Recipient and Non-Recipient Tracts: Here is the hard part about evaluating economic development investments: they try to target the projects that have the greatest potential to succeed, so by design you have sorted the sample. It’s similar to the challenge of trying to decide if Harvard provides a better education than a high-performing public university. Harvard has selected students that have the highest grades, test scores, early-life achievements, and privilege. Who can you compare this sample to? You have no similar counterfactual! In this instance, NMTC projects target poor communities, so by design we expect that program participants (tracts) and non-participants are different. The LIHTC program is different because affordable housing units can be built anywhere, they just need to cap rents for residents. IN PRACTICE they tend to go in poor communities because the capped rent will not be that different from the rent they could have received, and the lower rents help keep buildings are high occupancy rates. The government We can look at some descriptive statistics from 2000 to determine if we have an apples to oranges type of comparison: ### POVERTY RATES gridExtra::grid.arrange( PLOTS$pov_rate_2000$nmtc, PLOTS$pov_rate_2000$lihtc, nrow = 1 ) New Market Tax Credit recipients appear to be quite distinct, located in poorer tracts. We see the LIHTC projects tend to favor tracts with higher poverty than non-recipient tracts, but a large proportion of the projects are still located in tracts with low to moderate levels of poverty. ### HOME VALUES gridExtra::grid.arrange( PLOTS$mhv_2000$nmtc, PLOTS$mhv_2000$lihtc, nrow = 1 ) Apples to Oranges: When comparing recipient tracts to non-recipient tracts we can see very clearly that they are different. The degree depends on the program, NMTC seem to be very distinctive, and LIHTC still different but not as pronounced. Here are some more summary statistics comparing the two: Household Income 2000: ### HOUSEHOLD INCOME COMPARISONIN 2000: ### PROGRAM RECIPIENTS VS NON-RECIPIENT TRACTS # Tracts that received LIHTC mean( d$hinc00[ d$num.lihtc &amp;gt; 0 ] ) [1] 47302.67 # Tracts that did not mean( d$hinc00[ d$num.lihtc == 0 ] ) [1] 63789.2 # Tracts that received NMTC mean( d$hinc00[ d$num.nmtc &amp;gt; 0 ] ) [1] 35787.47 # Tracts that did not mean( d$hinc00[ d$num.nmtc == 0 ] ) [1] 62259.09 Home Value 2000: ### MEDIAN HOME VALUE COMPARISON IN 2000 # Tracts that received LIHTC mean( d$mhv.00[ d$num.lihtc &amp;gt; 0 ], na.rm=T ) [1] 156532.2 # Tracts that did not mean( d$mhv.00[ d$num.lihtc == 0 ], na.rm=T ) [1] 192119.9 # Tracts that received NMTC mean( d$mhv.00[ d$num.nmtc &amp;gt; 0 ], na.rm=T ) [1] 146669.4 # Tracts that did not mean( d$mhv.00[ d$num.nmtc == 0 ], na.rm=T ) [1] 188380.1 Poverty Rates 2000: ### POVERTY RATE COMPARISONS # Tracts that received LIHTC summary( d$pov.rate.00[ d$num.lihtc &amp;gt; 0 ] ) %&amp;gt;% pander() Min. 1st Qu. Median Mean 3rd Qu. Max. 0 7.977 15.87 19.34 28.55 88.21 # Tracts that did not summary( d$pov.rate.00[ d$num.lihtc == 0 ] ) %&amp;gt;% pander() Min. 1st Qu. Median Mean 3rd Qu. Max. 0 4.144 7.766 11.2 14.71 100 # Tracts that received NMTC summary( d$pov.rate.00[ d$num.nmtc &amp;gt; 0 ] ) %&amp;gt;% pander() Min. 1st Qu. Median Mean 3rd Qu. Max. 0 17.74 26.11 27.29 34.9 93.17 # Tracts that did not summary( d$pov.rate.00[ d$num.nmtc == 0 ] ) %&amp;gt;% pander() Min. 1st Qu. Median Mean 3rd Qu. Max. 0 4.335 8.217 11.89 15.77 100 And examining the DV of MHV growth rates to get a sense of the distribution of the outcome prior to running regression models: ### MHV Growth Rates (DV in Model) gridExtra::grid.arrange( PLOTS$mhv_growth$lihtc, PLOTS$mhv_growth$nmtc, nrow = 1 ) LIHTC on the left is a little ambiguous because there is more density for program participant tracts in the right tail (evidence of higher growth for the treatment), but also some more density in the peak left of the distribution for non-participant tracts. Visually it’s hard to assess. NMTC, on the other hand, look better off because of the large amount of density in the right-hand tail. We can confirm these with some descriptive statistics of home value growth rates: # Tracts that received LIHTC summary( d$growth[ d$num.lihtc &amp;gt; 0 ] ) %&amp;gt;% pander() Min. 1st Qu. Median Mean 3rd Qu. Max. NA’s -88.97 4.216 23.01 29.82 48.74 199.7 115 # Tracts that did not summary( d$growth[ d$num.lihtc == 0 ] ) %&amp;gt;% pander() Min. 1st Qu. Median Mean 3rd Qu. Max. NA’s -96.89 5.96 25.15 29.31 48.68 199.6 386 # Tracts that received NMTC summary( d$growth[ d$num.nmtc &amp;gt; 0 ] ) %&amp;gt;% pander() Min. 1st Qu. Median Mean 3rd Qu. Max. NA’s -94.55 10.99 33.59 39.64 62.97 199.3 56 # Tracts that did not summary( d$growth[ d$num.nmtc == 0 ] ) %&amp;gt;% pander() Min. 1st Qu. Median Mean 3rd Qu. Max. NA’s -96.89 5.587 24.7 29.09 48.36 199.7 445 Home value growth rates for LIHTC program participant and non-participant tracts are almost the same. Home value growth rates for NMTC participants are significant higher than non-participant tracts. These are unconditional means with no real counterfactual, so we still need to create an evaluation framework. But they offer some suggestive evidence. Report &amp;amp; Interpret Report and interpret the main results from the models. Are the programs effective at catalyzing neighborhood improvement? We are assuming median home value captures the increased market demand that reflects the desirability of improvements. NMTC # create the difference in difference model # note: treat = B1, post = B2, treat*post = B3 m &amp;lt;- lm( y ~ treat + post + p.vac + p.hs + p.unemp + treat*post, data=d3, na.rm = TRUE ) # display model results stargazer::stargazer(m, type = S_TYPE, digits = 2) Dependent variable: y treat 0.03\*\* (0.01) post 0.51\*\*\* (0.004) p.vac \-0.78\*\*\* (0.01) p.hs 1.65\*\*\* (0.03) p.unemp \-0.76\*\*\* (0.01) treat:post \-0.003 (0.02) Constant 10.09\*\*\* (0.06) Observations 118,120 R2 0.28 Adjusted R2 0.28 Residual Std. Error 0.55 (df = 118113) F Statistic 7,514.34\*\*\* (df = 6; 118113) Note: *p\&amp;lt;0.1; **p\&amp;lt;0.05; ***p\&amp;lt;0.01 Houses, on average, had a 51% increase during the treatment period (2000 - 2010). Although the post-treatment coefficient is different than 1, it is not statistically significant, indicating the NMTC program is not effective. LIHTC # create the difference in difference model # note: treat = B1, post = B2, treat*post = B3 m &amp;lt;- lm( y ~ treat + post + p.vac + p.hs + p.unemp + treat*post, data=l3 ) # display model results stargazer::stargazer(m, type = S_TYPE, digits = 2) Dependent variable: y treat \-0.05\*\*\* (0.01) post 0.51\*\*\* (0.004) p.vac \-0.77\*\*\* (0.01) p.hs 1.67\*\*\* (0.03) p.unemp \-0.74\*\*\* (0.01) treat:post \-0.03\*\*\* (0.01) Constant 10.05\*\*\* (0.06) Observations 118,120 R2 0.28 Adjusted R2 0.28 Residual Std. Error 0.55 (df = 118113) F Statistic 7,562.27\*\*\* (df = 6; 118113) Note: *p\&amp;lt;0.1; **p\&amp;lt;0.05; ***p\&amp;lt;0.01 With the LIHTC program, the post-treatment coefficient is statistically significant, but housing values rose, on average, by .03% less than houses in the control group.</summary></entry><entry><title type="html">Predicting MHV Change</title><link href="https://r-class.github.io/cpp-528-fall-2021-group-01/ch03-predicting_change/" rel="alternate" type="text/html" title="Predicting MHV Change" /><published>2021-11-13T00:00:00+00:00</published><updated>2021-11-13T00:00:00+00:00</updated><id>https://r-class.github.io/cpp-528-fall-2021-group-01/ch03-predicting_change</id><content type="html" xml:base="https://r-class.github.io/cpp-528-fall-2021-group-01/ch03-predicting_change/">&lt;p&gt;In this chapter, control variables will be selected to create a regression model using median home value (MHV) growth as a dependent variable. 
The reason for choosing MHV growth is explained in our &lt;a href=&quot;https://watts-college.github.io/cpp-528-fall-2021/sched/week-04/&quot;&gt;Lab 04 Lecture&lt;/a&gt;; “&lt;em&gt;This choice draws on a large body of work on “hedonic pricing models” which assert that home values are a good price mechanism to capture the state of a neighborhood because they “price in” all of the characteristics of the house as well as the features of the neighborhood and surrounding city.&lt;/em&gt;”&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# load necessary packages ----&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dplyr&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;knitr&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tidycensus&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;scales&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# set randomization seed ----&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;set.seed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1234&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# load necessary functions and objects ----&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# note: all of these are R objects that will be used throughout this .rmd file&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;S_TYPE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;panel.cor&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;panel.smooth&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;jplot&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;d&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;df&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;cbsa_stats_df&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# notice the use of here::here() that points to the .R file&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# where all these R objects are created&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;.from&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;analysis/utilities_master.R&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;.character_only&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;TRUE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;options&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tigris_use_cache&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;TRUE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;part-1---data&quot;&gt;Part 1 - Data&lt;/h1&gt;

&lt;p&gt;Preview the data sets (&lt;strong&gt;d&lt;/strong&gt;, &lt;strong&gt;df&lt;/strong&gt;, and &lt;strong&gt;cbsa_stats_df&lt;/strong&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;d&lt;/strong&gt; contains select variables from the census tract data. The data set
was cleaned and created in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;utilities_master.R file&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;tractid&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhmval00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhmval12&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;hinc00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;hu00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;vac00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;own00&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-001-020100&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;76600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;121500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;36685&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;769&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;93&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;518&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-001-020200&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;72900&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;130500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;30298&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;731&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;67&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;452&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-001-020300&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;79900&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;118700&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46731&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1263&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;61&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;869&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-001-020400&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;89800&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;133500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46142&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1871&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;111&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1390&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-001-020500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;116594&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;174500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;58886&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2282&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;80.39&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1671&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-001-020600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;70400&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;129600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33699&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1310&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;139.5&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;960.9&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;rent00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;h30old00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;empclf00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;clf00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;unemp00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;prof00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;dpov00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;npov00&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;158&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;225&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;826&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;872&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;221&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1790&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;227&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;212&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;329&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;722&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;802&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;154&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1907&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;433&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;333&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;452&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1414&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1456&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;42&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;438&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3262&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;250&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;370&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;979&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2114&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2191&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;77&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;673&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4551&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;207&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;531.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;152.5&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2906&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2955&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;49.35&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1173&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6048&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;223.3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;209.2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;450.4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1497&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1584&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;87.18&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;364.2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3272&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;497.9&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;ag25up00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;hs00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;col00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;pop00.x&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;nhwht00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;nhblk00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;hisp00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;asian00&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1227&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;635&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;192&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1921&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1723&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;145&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1157&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;740&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;170&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1892&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;671&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1177&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2130&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;990&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;478&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3339&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2738&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;498&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;55&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;27&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3072&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1477&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;708&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4556&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4273&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;118&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;101&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;40&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3785&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1257&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1214&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6054&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5427&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;367.5&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;95.24&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;113.1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1977&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1179&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;317.7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3272&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2615&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;553.1&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;63.93&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.65&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;cbsa&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;cbsaname&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhv.00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhv.10&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhv.change&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhv.growth&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.white&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Montgomery, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;98703&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;121500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22797&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;23.1&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;89.69&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Montgomery, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;93935&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;130500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;36565&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;38.93&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35.47&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Montgomery, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;102955&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;118700&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15745&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.29&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;82&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Montgomery, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;115712&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;133500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;17788&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.37&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;93.79&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Montgomery, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;150237&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;174500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;24263&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.15&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;89.64&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Montgomery, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;90714&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;129600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;38886&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;42.87&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;79.93&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.black&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.hisp&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.asian&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.hs&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.col&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.prof&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.unemp&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.vacant&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.548&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.6247&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.4164&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;67.4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.65&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;26.76&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5.275&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12.09&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;62.21&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.8457&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.6342&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;78.65&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14.69&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;21.33&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9.975&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9.166&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14.91&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.647&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.8086&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;68.92&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22.44&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;30.98&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.885&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.83&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.59&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.217&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.878&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;71.13&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;23.05&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;31.84&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.514&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5.933&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6.07&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.573&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.867&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;65.29&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;32.07&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;40.38&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.67&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.522&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.954&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.3256&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;75.7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.07&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;24.34&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5.505&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.65&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhv.change.00.to.10&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.mhv.change&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;pov.rate&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;44900&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;58.62&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12.68&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;57600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;79.01&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22.71&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;38800&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;48.56&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.664&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;43700&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;48.66&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.548&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;57906&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;49.67&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.692&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;59200&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;84.09&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.22&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;strong&gt;df&lt;/strong&gt; was created using the &lt;em&gt;mhv.00&lt;/em&gt;, &lt;em&gt;mhv.10&lt;/em&gt;, &lt;em&gt;mhv.change&lt;/em&gt;, and
&lt;em&gt;mhv.growth&lt;/em&gt; variables from data set &lt;strong&gt;d&lt;/strong&gt;.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;MedianHomeValue2000&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;MedianHomeValue2010&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;MHV.Change.00.to.10&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;98703&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;121500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22797&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;93935&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;130500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;36565&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;102955&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;118700&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15745&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;115712&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;133500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;17788&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;150237&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;174500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;24263&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;90714&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;129600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;38886&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;MHV.Growth.00.to.12&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;23.1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;38.93&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.29&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.37&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.15&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;42.87&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;strong&gt;cbsa_stats_df&lt;/strong&gt; displays the median median home value change and
growth for each metropolitan area.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cbsa_stats_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;cbsaname&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;metro.mhv.change&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;metro.mhv.growth&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Abilene, TX&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12667&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2182&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Akron, OH&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;-10634&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;-887.3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Albany-Schenectady-Troy, NY&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;54413&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4176&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Albany, GA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5547&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;645.6&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Albuquerque, NM&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;27947&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1849&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Alexandria, LA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;23329&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3274&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Look at the summary statistics for &lt;strong&gt;df&lt;/strong&gt;.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
           &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;S_TYPE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
           &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;digits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
           &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary.stat&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;min&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;p25&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;median&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;mean&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;p75&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;max&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table style=&quot;text-align:center&quot;&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Statistic

&lt;/td&gt;

&lt;td&gt;

Min

&lt;/td&gt;

&lt;td&gt;

Pctl(25)

&lt;/td&gt;

&lt;td&gt;

Median

&lt;/td&gt;

&lt;td&gt;

Mean

&lt;/td&gt;

&lt;td&gt;

Pctl(75)

&lt;/td&gt;

&lt;td&gt;

Max

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

MedianHomeValue2000

&lt;/td&gt;

&lt;td&gt;

11,167

&lt;/td&gt;

&lt;td&gt;

105,661

&lt;/td&gt;

&lt;td&gt;

154,903

&lt;/td&gt;

&lt;td&gt;

187,129

&lt;/td&gt;

&lt;td&gt;

224,337

&lt;/td&gt;

&lt;td&gt;

1,288,551

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

MedianHomeValue2010

&lt;/td&gt;

&lt;td&gt;

9,999

&lt;/td&gt;

&lt;td&gt;

123,200

&lt;/td&gt;

&lt;td&gt;

193,200

&lt;/td&gt;

&lt;td&gt;

246,570

&lt;/td&gt;

&lt;td&gt;

312,000

&lt;/td&gt;

&lt;td&gt;

1,000,001

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

MHV.Change.00.to.10

&lt;/td&gt;

&lt;td&gt;

\-1,228,651

&lt;/td&gt;

&lt;td&gt;

7,187

&lt;/td&gt;

&lt;td&gt;

36,268

&lt;/td&gt;

&lt;td&gt;

60,047

&lt;/td&gt;

&lt;td&gt;

94,881

&lt;/td&gt;

&lt;td&gt;

1,000,001

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

MHV.Growth.00.to.12

&lt;/td&gt;

&lt;td&gt;

\-97

&lt;/td&gt;

&lt;td&gt;

6

&lt;/td&gt;

&lt;td&gt;

25

&lt;/td&gt;

&lt;td&gt;

33

&lt;/td&gt;

&lt;td&gt;

50

&lt;/td&gt;

&lt;td&gt;

6,059

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;/table&gt;

&lt;p&gt;Complete one final step to clean the data.&lt;/p&gt;

&lt;p&gt;1)  Omit cases that have a median home value less than $10,000 in 2000.&lt;/p&gt;

&lt;p&gt;2)  Omit cases with growth rates above 200%.&lt;/p&gt;

&lt;!-- end list --&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;d_clean&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;filter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;10000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;filter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_clean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;tractid&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhmval00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhmval12&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;hinc00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;hu00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;vac00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;own00&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-001-020100&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;76600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;121500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;36685&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;769&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;93&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;518&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-001-020200&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;72900&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;130500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;30298&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;731&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;67&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;452&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-001-020300&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;79900&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;118700&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46731&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1263&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;61&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;869&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-001-020400&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;89800&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;133500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46142&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1871&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;111&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1390&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-001-020500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;116594&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;174500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;58886&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2282&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;80.39&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1671&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-001-020600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;70400&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;129600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33699&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1310&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;139.5&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;960.9&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;rent00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;h30old00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;empclf00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;clf00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;unemp00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;prof00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;dpov00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;npov00&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;158&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;225&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;826&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;872&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;221&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1790&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;227&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;212&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;329&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;722&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;802&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;154&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1907&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;433&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;333&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;452&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1414&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1456&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;42&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;438&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3262&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;250&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;370&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;979&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2114&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2191&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;77&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;673&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4551&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;207&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;531.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;152.5&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2906&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2955&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;49.35&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1173&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6048&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;223.3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;209.2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;450.4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1497&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1584&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;87.18&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;364.2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3272&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;497.9&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;ag25up00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;hs00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;col00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;pop00.x&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;nhwht00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;nhblk00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;hisp00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;asian00&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1227&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;635&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;192&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1921&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1723&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;145&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1157&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;740&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;170&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1892&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;671&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1177&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2130&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;990&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;478&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3339&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2738&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;498&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;55&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;27&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3072&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1477&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;708&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4556&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4273&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;118&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;101&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;40&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3785&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1257&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1214&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6054&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5427&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;367.5&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;95.24&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;113.1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1977&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1179&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;317.7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3272&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2615&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;553.1&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;63.93&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.65&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;cbsa&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;cbsaname&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhv.00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhv.10&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhv.change&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhv.growth&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.white&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Montgomery, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;98703&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;121500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22797&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;23.1&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;89.69&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Montgomery, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;93935&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;130500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;36565&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;38.93&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35.47&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Montgomery, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;102955&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;118700&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15745&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.29&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;82&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Montgomery, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;115712&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;133500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;17788&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.37&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;93.79&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Montgomery, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;150237&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;174500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;24263&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.15&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;89.64&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Montgomery, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;90714&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;129600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;38886&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;42.87&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;79.93&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.black&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.hisp&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.asian&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.hs&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.col&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.prof&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.unemp&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.vacant&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.548&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.6247&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.4164&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;67.4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.65&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;26.76&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5.275&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12.09&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;62.21&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.8457&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.6342&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;78.65&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14.69&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;21.33&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9.975&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9.166&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14.91&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.647&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.8086&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;68.92&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22.44&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;30.98&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.885&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.83&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.59&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.217&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.878&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;71.13&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;23.05&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;31.84&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.514&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5.933&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6.07&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.573&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.867&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;65.29&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;32.07&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;40.38&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.67&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.522&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.954&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.3256&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;75.7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.07&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;24.34&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5.505&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.65&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhv.change.00.to.10&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.mhv.change&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;pov.rate&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;44900&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;58.62&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12.68&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;57600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;79.01&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22.71&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;38800&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;48.56&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.664&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;43700&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;48.66&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.548&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;57906&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;49.67&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.692&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;59200&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;84.09&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.22&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h1 id=&quot;part-2---predict-mhv-change&quot;&gt;Part 2 - Predict MHV Change&lt;/h1&gt;

&lt;p&gt;The next step is to create a regression model using control variables
which can predict changes in median home value. There are a few tests
which need to be completed before finalizing the regression model to
predict MHV change. The code below will review the following steps:&lt;/p&gt;

&lt;p&gt;1)  Select control variables.&lt;/p&gt;

&lt;p&gt;2)  Check for variable skew and perform log transformation if needed.&lt;/p&gt;

&lt;p&gt;3)  Check for multicolinearity.&lt;/p&gt;

&lt;p&gt;4)  Add a metro-level control.&lt;/p&gt;

&lt;p&gt;For more information on the reasoning behind these data steps, visit 
the &lt;a href=&quot;https://watts-college.github.io/cpp-528-fall-2021/labs/lab-04-tutorial.html&quot;&gt;Lab 04 Tutorial&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;First, check variables available for the regression model.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Check variables available for regression model&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;colnames&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;##  [1] &quot;tractid&quot;             &quot;mhmval00&quot;            &quot;mhmval12&quot;            &quot;hinc00&quot;              &quot;hu00&quot;                &quot;vac00&quot;               &quot;own00&quot;              
##  [8] &quot;rent00&quot;              &quot;h30old00&quot;            &quot;empclf00&quot;            &quot;clf00&quot;               &quot;unemp00&quot;             &quot;prof00&quot;              &quot;dpov00&quot;             
## [15] &quot;npov00&quot;              &quot;ag25up00&quot;            &quot;hs00&quot;                &quot;col00&quot;               &quot;pop00.x&quot;             &quot;nhwht00&quot;             &quot;nhblk00&quot;            
## [22] &quot;hisp00&quot;              &quot;asian00&quot;             &quot;cbsa&quot;                &quot;cbsaname&quot;            &quot;mhv.00&quot;              &quot;mhv.10&quot;              &quot;mhv.change&quot;         
## [29] &quot;mhv.growth&quot;          &quot;p.white&quot;             &quot;p.black&quot;             &quot;p.hisp&quot;              &quot;p.asian&quot;             &quot;p.hs&quot;                &quot;p.col&quot;              
## [36] &quot;p.prof&quot;              &quot;p.unemp&quot;             &quot;p.vacant&quot;            &quot;mhv.change.00.to.10&quot; &quot;p.mhv.change&quot;        &quot;pov.rate&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Select variables to predict MHV change. Compare the scatter plots of the
variables.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Select predictors of change in MHV or mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_clean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.unemp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hinc00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.col&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# reduce data density for visualization&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;set.seed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1234&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sample_n&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;10000&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.omit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# correlation plots&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pairs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;panel&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;panel.cor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lower.panel&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;panel.smooth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/2021-11-13-ch03-predicting_change_files/figure-gfm/scatter%20plot%201-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;p&gt;Many scatter plots are clustered to one side, do not produce a linear
path, or have outliers. These plots indicate that the data is skewed.
The data must be manipulated to create a model of better fit.&lt;/p&gt;

&lt;p&gt;To do this, perform log transformations to get rid of varibale skew.
Compare the scatter plots again.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# reduce data density for visualization&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;set.seed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1234&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# recode some vars to remove outliers and skew&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.unemp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;log10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.unemp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hinc00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;log10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hinc00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;log10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;log10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.col&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;log10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.col&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;log10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;


&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sample_n&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;5000&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.omit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# correlation plots&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pairs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;panel&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;panel.cor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lower.panel&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;panel.smooth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/2021-11-13-ch03-predicting_change_files/figure-gfm/scatter%20plot%202-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;p&gt;These scatter plots look a bit better.&lt;/p&gt;

&lt;p&gt;Next, test for multicollinearity by running a regression model comparing
selected variables. &lt;em&gt;hinc00&lt;/em&gt; and &lt;em&gt;p.col&lt;/em&gt; were not selected due to their
high correlation with &lt;em&gt;pov.rate&lt;/em&gt; and &lt;em&gt;p.prof&lt;/em&gt;. These variables measure
similar outcomes and do not add any new information.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# multicollinearity test 1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.unemp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m4&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m5&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.unemp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
           &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;S_TYPE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;digits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
           &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;omit.stat&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;rsq&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;f&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table style=&quot;text-align:center&quot;&gt;

&lt;tr&gt;

&lt;td colspan=&quot;6&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td colspan=&quot;5&quot;&gt;

&lt;em&gt;Dependent variable:&lt;/em&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td colspan=&quot;5&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td colspan=&quot;5&quot;&gt;

mhv.growth

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(1)

&lt;/td&gt;

&lt;td&gt;

(2)

&lt;/td&gt;

&lt;td&gt;

(3)

&lt;/td&gt;

&lt;td&gt;

(4)

&lt;/td&gt;

&lt;td&gt;

(5)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;6&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

pov.rate

&lt;/td&gt;

&lt;td&gt;

12.93&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

14.37&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.42)

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.66)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.unemp

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

15.57&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

3.57&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.56)

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.87)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.white

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

\-14.82&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

\-15.09&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.35)

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.45)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.prof

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

4.27&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

37.54&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.74)

&lt;/td&gt;

&lt;td&gt;

(0.95)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Constant

&lt;/td&gt;

&lt;td&gt;

16.69&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

17.43&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

54.97&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

23.04&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

\-17.73&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.44)

&lt;/td&gt;

&lt;td&gt;

(0.46)

&lt;/td&gt;

&lt;td&gt;

(0.62)

&lt;/td&gt;

&lt;td&gt;

(1.11)

&lt;/td&gt;

&lt;td&gt;

(2.08)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;6&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Observations

&lt;/td&gt;

&lt;td&gt;

58,798

&lt;/td&gt;

&lt;td&gt;

58,801

&lt;/td&gt;

&lt;td&gt;

58,839

&lt;/td&gt;

&lt;td&gt;

58,797

&lt;/td&gt;

&lt;td&gt;

58,788

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Adjusted R&lt;sup&gt;2&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

0.02

&lt;/td&gt;

&lt;td&gt;

0.01

&lt;/td&gt;

&lt;td&gt;

0.03

&lt;/td&gt;

&lt;td&gt;

0.001

&lt;/td&gt;

&lt;td&gt;

0.06

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Residual Std. Error

&lt;/td&gt;

&lt;td&gt;

34.89 (df = 58796)

&lt;/td&gt;

&lt;td&gt;

34.94 (df = 58799)

&lt;/td&gt;

&lt;td&gt;

34.65 (df = 58837)

&lt;/td&gt;

&lt;td&gt;

35.16 (df = 58795)

&lt;/td&gt;

&lt;td&gt;

34.17 (df = 58783)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;6&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;em&gt;Note:&lt;/em&gt;

&lt;/td&gt;

&lt;td colspan=&quot;5&quot; style=&quot;text-align:right&quot;&gt;

&lt;sup&gt;*&lt;/sup&gt;p\&amp;lt;0.1; &lt;sup&gt;**&lt;/sup&gt;p\&amp;lt;0.05; &lt;sup&gt;***&lt;/sup&gt;p\&amp;lt;0.01

&lt;/td&gt;

&lt;/tr&gt;

&lt;/table&gt;

&lt;p&gt;The coefficient for &lt;em&gt;p.unemp&lt;/em&gt; drops significantly from m1 to m5. This
indicates that the variable contains redundant information.&lt;/p&gt;

&lt;p&gt;Remove &lt;em&gt;p.unemp&lt;/em&gt; and run the regression model again.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Create a new model with p.unemp removed.&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m6&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_predict&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m6&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
           &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;S_TYPE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;digits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
           &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;omit.stat&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;rsq&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;f&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table style=&quot;text-align:center&quot;&gt;

&lt;tr&gt;

&lt;td colspan=&quot;5&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td colspan=&quot;4&quot;&gt;

&lt;em&gt;Dependent variable:&lt;/em&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td colspan=&quot;4&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td colspan=&quot;4&quot;&gt;

mhv.growth

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(1)

&lt;/td&gt;

&lt;td&gt;

(2)

&lt;/td&gt;

&lt;td&gt;

(3)

&lt;/td&gt;

&lt;td&gt;

(4)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;5&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

pov.rate

&lt;/td&gt;

&lt;td&gt;

12.93&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

15.68&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.42)

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.57)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.white

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

\-14.82&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

\-15.66&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.35)

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.42)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.prof

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

4.27&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

36.85&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.74)

&lt;/td&gt;

&lt;td&gt;

(0.94)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Constant

&lt;/td&gt;

&lt;td&gt;

16.69&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

54.97&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

23.04&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

\-14.27&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.44)

&lt;/td&gt;

&lt;td&gt;

(0.62)

&lt;/td&gt;

&lt;td&gt;

(1.11)

&lt;/td&gt;

&lt;td&gt;

(1.90)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;5&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Observations

&lt;/td&gt;

&lt;td&gt;

58,798

&lt;/td&gt;

&lt;td&gt;

58,839

&lt;/td&gt;

&lt;td&gt;

58,797

&lt;/td&gt;

&lt;td&gt;

58,788

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Adjusted R&lt;sup&gt;2&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

0.02

&lt;/td&gt;

&lt;td&gt;

0.03

&lt;/td&gt;

&lt;td&gt;

0.001

&lt;/td&gt;

&lt;td&gt;

0.06

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Residual Std. Error

&lt;/td&gt;

&lt;td&gt;

34.89 (df = 58796)

&lt;/td&gt;

&lt;td&gt;

34.65 (df = 58837)

&lt;/td&gt;

&lt;td&gt;

35.16 (df = 58795)

&lt;/td&gt;

&lt;td&gt;

34.18 (df = 58784)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;5&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;em&gt;Note:&lt;/em&gt;

&lt;/td&gt;

&lt;td colspan=&quot;4&quot; style=&quot;text-align:right&quot;&gt;

&lt;sup&gt;*&lt;/sup&gt;p\&amp;lt;0.1; &lt;sup&gt;**&lt;/sup&gt;p\&amp;lt;0.05; &lt;sup&gt;***&lt;/sup&gt;p\&amp;lt;0.01

&lt;/td&gt;

&lt;/tr&gt;

&lt;/table&gt;

&lt;p&gt;Variables may produce different effects in different tracts. Add a
metro-level control to anchor the dependent variable (&lt;em&gt;mhv.growth&lt;/em&gt;) and
account for context. This will be the final data manipulation.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Add metro-level control&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_fixed&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_clean&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;group_by&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cbsaname&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mutate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ungroup&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# Select variables for regression model.&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.reg&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d_fixed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cbsa&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;


&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# Perform log transformations&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.reg&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;log10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.reg&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.reg&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;log10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.reg&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.reg&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;log10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.reg&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# Regression Model&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.reg&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.reg&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.reg&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m4&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cbsa&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.reg&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;m4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
           &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;S_TYPE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;digits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
           &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;omit.stat&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;rsq&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;f&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
           &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;omit&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;cbsa&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
           &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;add.lines&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;list&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Metro Fixed Effects:&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;NO&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;NO&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;NO&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;YES&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table style=&quot;text-align:center&quot;&gt;

&lt;tr&gt;

&lt;td colspan=&quot;5&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td colspan=&quot;4&quot;&gt;

&lt;em&gt;Dependent variable:&lt;/em&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td colspan=&quot;4&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td colspan=&quot;4&quot;&gt;

mhv.growth

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(1)

&lt;/td&gt;

&lt;td&gt;

(2)

&lt;/td&gt;

&lt;td&gt;

(3)

&lt;/td&gt;

&lt;td&gt;

(4)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;5&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

pov.rate

&lt;/td&gt;

&lt;td&gt;

12.93&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

13.47&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.42)

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.48)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.white

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

\-14.82&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

\-1.39&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.35)

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.40)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.prof

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

4.27&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

8.97&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

(0.74)

&lt;/td&gt;

&lt;td&gt;

(0.80)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Constant

&lt;/td&gt;

&lt;td&gt;

16.69&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

54.97&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

23.04&lt;sup&gt;\*\*\*&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

\-0.26

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

(0.44)

&lt;/td&gt;

&lt;td&gt;

(0.62)

&lt;/td&gt;

&lt;td&gt;

(1.11)

&lt;/td&gt;

&lt;td&gt;

(4.41)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;td&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;5&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Metro Fixed Effects:

&lt;/td&gt;

&lt;td&gt;

NO

&lt;/td&gt;

&lt;td&gt;

NO

&lt;/td&gt;

&lt;td&gt;

NO

&lt;/td&gt;

&lt;td&gt;

YES

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Observations

&lt;/td&gt;

&lt;td&gt;

58,798

&lt;/td&gt;

&lt;td&gt;

58,839

&lt;/td&gt;

&lt;td&gt;

58,797

&lt;/td&gt;

&lt;td&gt;

58,788

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Adjusted R&lt;sup&gt;2&lt;/sup&gt;

&lt;/td&gt;

&lt;td&gt;

0.02

&lt;/td&gt;

&lt;td&gt;

0.03

&lt;/td&gt;

&lt;td&gt;

0.001

&lt;/td&gt;

&lt;td&gt;

0.42

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Residual Std. Error

&lt;/td&gt;

&lt;td&gt;

34.89 (df = 58796)

&lt;/td&gt;

&lt;td&gt;

34.65 (df = 58837)

&lt;/td&gt;

&lt;td&gt;

35.16 (df = 58795)

&lt;/td&gt;

&lt;td&gt;

26.84 (df = 58406)

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;5&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

&lt;em&gt;Note:&lt;/em&gt;

&lt;/td&gt;

&lt;td colspan=&quot;4&quot; style=&quot;text-align:right&quot;&gt;

&lt;sup&gt;*&lt;/sup&gt;p\&amp;lt;0.1; &lt;sup&gt;**&lt;/sup&gt;p\&amp;lt;0.05; &lt;sup&gt;***&lt;/sup&gt;p\&amp;lt;0.01

&lt;/td&gt;

&lt;/tr&gt;

&lt;/table&gt;

&lt;h1 id=&quot;reflection&quot;&gt;Reflection&lt;/h1&gt;

&lt;p&gt;The higher the poverty rate in a metro area, the more growth they will
experience in median home value. Specifically, a 1% growth in poverty
rate results in a 12.93% growth in median home value. This result makes
the most sense based on what we know about gentrification. Median home
value will grow at a quicker rate (or higher percentage) in a
metropolitan area where the poverty rate was already high compared to a
richer area.&lt;/p&gt;

&lt;p&gt;The higher the percentage of whites in the population in 2000, the less
growth in median home value a tract or metro area will experience.
Specifically, a 1% increase in percent white results in a 14.82%
decrease in median home value growth. However, upon adding the cbsa
variable to create a metro-level fixed effect, the coefficient decreases
immensely. This indicates that the percent of white in the population
has different effects on median home value growth depending on the
tract. This should be investigated further.&lt;/p&gt;

&lt;p&gt;The higher the percentage of professional employees in the population in
2000, the more growth they will experience in median home value.
Specifically, a 1% increase in percent professional will result in a
4.27% growth in median home value. This result makes less sense since it
conceptually contradicts the trend seen with poverty rates. The increase
in the coefficient in the fourth model is also concerning. This
indicates some sort of difference in the effects of percent professional
on mhv.growth in separate tracts.&lt;/p&gt;

&lt;p&gt;It is also interesting to note that all the control variables selected
are significant.&lt;/p&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;“Hedonic Pricing Method” , 1/1/2015  , Web. 7 November 2021. [PDF file]. Available from “https://watts-college.github.io/cpp-528-fall-2021/articles/home-value-change/hedonic-pricing-method.pdf”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Monson, Matt, Cornell MBA and PRE . “Valuation Using Hedonic Pricing Models” , 2009,.Web. 7 November 2021. [PDF file]. Available from “https://watts-college.github.io/cpp-528-fall-2021/articles/home-value-change/valuation-using-hedonic-pricing.pdf”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Stowers, C. (n.d.). Hedonic pricing models. Watts. Retrieved November 2021, from “https://watts-college.github.io/cpp-528-fall-2021/sched/week-04/”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Tutorial on Predicting Mhv Change. (November 6, 2021). Reading. Retrieved November 2021, from “https://watts-college.github.io/cpp-528-fall-2021/labs/lab-04-tutorial.html”&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;</content><author><name>Ahmed Rashwan, Alev Yildiz, April Peck, and Erin McIntyre</name></author><summary type="html">In this chapter, control variables will be selected to create a regression model using median home value (MHV) growth as a dependent variable. The reason for choosing MHV growth is explained in our Lab 04 Lecture; “This choice draws on a large body of work on “hedonic pricing models” which assert that home values are a good price mechanism to capture the state of a neighborhood because they “price in” all of the characteristics of the house as well as the features of the neighborhood and surrounding city.” # load necessary packages ---- library( dplyr ) library( here ) library( knitr ) library( pander ) library(tidycensus) library( stargazer ) library( scales ) # set randomization seed ---- set.seed( 1234 ) # load necessary functions and objects ---- # note: all of these are R objects that will be used throughout this .rmd file import::here(&quot;S_TYPE&quot;, &quot;panel.cor&quot;, &quot;panel.smooth&quot;, &quot;jplot&quot;, &quot;d&quot;, &quot;df&quot;, &quot;cbsa_stats_df&quot;, # notice the use of here::here() that points to the .R file # where all these R objects are created .from = here::here(&quot;analysis/utilities_master.R&quot;), .character_only = TRUE) options(tigris_use_cache = TRUE) Part 1 - Data Preview the data sets (d, df, and cbsa_stats_df). d contains select variables from the census tract data. The data set was cleaned and created in the utilities_master.R file. head(d) %&amp;gt;% pander() tractid mhmval00 mhmval12 hinc00 hu00 vac00 own00 fips-01-001-020100 76600 121500 36685 769 93 518 fips-01-001-020200 72900 130500 30298 731 67 452 fips-01-001-020300 79900 118700 46731 1263 61 869 fips-01-001-020400 89800 133500 46142 1871 111 1390 fips-01-001-020500 116594 174500 58886 2282 80.39 1671 fips-01-001-020600 70400 129600 33699 1310 139.5 960.9 Table continues below rent00 h30old00 empclf00 clf00 unemp00 prof00 dpov00 npov00 158 225 826 872 46 221 1790 227 212 329 722 802 80 154 1907 433 333 452 1414 1456 42 438 3262 250 370 979 2114 2191 77 673 4551 207 531.3 152.5 2906 2955 49.35 1173 6048 223.3 209.2 450.4 1497 1584 87.18 364.2 3272 497.9 Table continues below ag25up00 hs00 col00 pop00.x nhwht00 nhblk00 hisp00 asian00 1227 635 192 1921 1723 145 12 8 1157 740 170 1892 671 1177 16 12 2130 990 478 3339 2738 498 55 27 3072 1477 708 4556 4273 118 101 40 3785 1257 1214 6054 5427 367.5 95.24 113.1 1977 1179 317.7 3272 2615 553.1 63.93 10.65 Table continues below cbsa cbsaname mhv.00 mhv.10 mhv.change mhv.growth p.white 33860 Montgomery, AL 98703 121500 22797 23.1 89.69 33860 Montgomery, AL 93935 130500 36565 38.93 35.47 33860 Montgomery, AL 102955 118700 15745 15.29 82 33860 Montgomery, AL 115712 133500 17788 15.37 93.79 33860 Montgomery, AL 150237 174500 24263 16.15 89.64 33860 Montgomery, AL 90714 129600 38886 42.87 79.93 Table continues below p.black p.hisp p.asian p.hs p.col p.prof p.unemp p.vacant 7.548 0.6247 0.4164 67.4 15.65 26.76 5.275 12.09 62.21 0.8457 0.6342 78.65 14.69 21.33 9.975 9.166 14.91 1.647 0.8086 68.92 22.44 30.98 2.885 4.83 2.59 2.217 0.878 71.13 23.05 31.84 3.514 5.933 6.07 1.573 1.867 65.29 32.07 40.38 1.67 3.522 16.9 1.954 0.3256 75.7 16.07 24.34 5.505 10.65 Table continues below mhv.change.00.to.10 p.mhv.change pov.rate 44900 58.62 12.68 57600 79.01 22.71 38800 48.56 7.664 43700 48.66 4.548 57906 49.67 3.692 59200 84.09 15.22 df was created using the mhv.00, mhv.10, mhv.change, and mhv.growth variables from data set d. head(df) %&amp;gt;% pander() MedianHomeValue2000 MedianHomeValue2010 MHV.Change.00.to.10 98703 121500 22797 93935 130500 36565 102955 118700 15745 115712 133500 17788 150237 174500 24263 90714 129600 38886 Table continues below MHV.Growth.00.to.12 23.1 38.93 15.29 15.37 16.15 42.87 cbsa_stats_df displays the median median home value change and growth for each metropolitan area. head(cbsa_stats_df) %&amp;gt;% pander() cbsaname metro.mhv.change metro.mhv.growth Abilene, TX 12667 2182 Akron, OH -10634 -887.3 Albany-Schenectady-Troy, NY 54413 4176 Albany, GA 5547 645.6 Albuquerque, NM 27947 1849 Alexandria, LA 23329 3274 Look at the summary statistics for df. stargazer( df, type=S_TYPE, digits=0, summary.stat = c(&quot;min&quot;, &quot;p25&quot;,&quot;median&quot;,&quot;mean&quot;,&quot;p75&quot;,&quot;max&quot;) ) Statistic Min Pctl(25) Median Mean Pctl(75) Max MedianHomeValue2000 11,167 105,661 154,903 187,129 224,337 1,288,551 MedianHomeValue2010 9,999 123,200 193,200 246,570 312,000 1,000,001 MHV.Change.00.to.10 \-1,228,651 7,187 36,268 60,047 94,881 1,000,001 MHV.Growth.00.to.12 \-97 6 25 33 50 6,059 Complete one final step to clean the data. 1) Omit cases that have a median home value less than $10,000 in 2000. 2) Omit cases with growth rates above 200%. d_clean &amp;lt;- d %&amp;gt;% filter(mhv.00 &amp;gt; 10000) %&amp;gt;% filter(mhv.growth &amp;lt; 200) head(d_clean) %&amp;gt;% pander() tractid mhmval00 mhmval12 hinc00 hu00 vac00 own00 fips-01-001-020100 76600 121500 36685 769 93 518 fips-01-001-020200 72900 130500 30298 731 67 452 fips-01-001-020300 79900 118700 46731 1263 61 869 fips-01-001-020400 89800 133500 46142 1871 111 1390 fips-01-001-020500 116594 174500 58886 2282 80.39 1671 fips-01-001-020600 70400 129600 33699 1310 139.5 960.9 Table continues below rent00 h30old00 empclf00 clf00 unemp00 prof00 dpov00 npov00 158 225 826 872 46 221 1790 227 212 329 722 802 80 154 1907 433 333 452 1414 1456 42 438 3262 250 370 979 2114 2191 77 673 4551 207 531.3 152.5 2906 2955 49.35 1173 6048 223.3 209.2 450.4 1497 1584 87.18 364.2 3272 497.9 Table continues below ag25up00 hs00 col00 pop00.x nhwht00 nhblk00 hisp00 asian00 1227 635 192 1921 1723 145 12 8 1157 740 170 1892 671 1177 16 12 2130 990 478 3339 2738 498 55 27 3072 1477 708 4556 4273 118 101 40 3785 1257 1214 6054 5427 367.5 95.24 113.1 1977 1179 317.7 3272 2615 553.1 63.93 10.65 Table continues below cbsa cbsaname mhv.00 mhv.10 mhv.change mhv.growth p.white 33860 Montgomery, AL 98703 121500 22797 23.1 89.69 33860 Montgomery, AL 93935 130500 36565 38.93 35.47 33860 Montgomery, AL 102955 118700 15745 15.29 82 33860 Montgomery, AL 115712 133500 17788 15.37 93.79 33860 Montgomery, AL 150237 174500 24263 16.15 89.64 33860 Montgomery, AL 90714 129600 38886 42.87 79.93 Table continues below p.black p.hisp p.asian p.hs p.col p.prof p.unemp p.vacant 7.548 0.6247 0.4164 67.4 15.65 26.76 5.275 12.09 62.21 0.8457 0.6342 78.65 14.69 21.33 9.975 9.166 14.91 1.647 0.8086 68.92 22.44 30.98 2.885 4.83 2.59 2.217 0.878 71.13 23.05 31.84 3.514 5.933 6.07 1.573 1.867 65.29 32.07 40.38 1.67 3.522 16.9 1.954 0.3256 75.7 16.07 24.34 5.505 10.65 Table continues below mhv.change.00.to.10 p.mhv.change pov.rate 44900 58.62 12.68 57600 79.01 22.71 38800 48.56 7.664 43700 48.66 4.548 57906 49.67 3.692 59200 84.09 15.22 Part 2 - Predict MHV Change The next step is to create a regression model using control variables which can predict changes in median home value. There are a few tests which need to be completed before finalizing the regression model to predict MHV change. The code below will review the following steps: 1) Select control variables. 2) Check for variable skew and perform log transformation if needed. 3) Check for multicolinearity. 4) Add a metro-level control. For more information on the reasoning behind these data steps, visit the Lab 04 Tutorial.</summary></entry><entry><title type="html">Descriptive Analysis of Neighborhood Change</title><link href="https://r-class.github.io/cpp-528-fall-2021-group-01/ch02-descriptive_analysis/" rel="alternate" type="text/html" title="Descriptive Analysis of Neighborhood Change" /><published>2021-11-01T00:00:00+00:00</published><updated>2021-11-01T00:00:00+00:00</updated><id>https://r-class.github.io/cpp-528-fall-2021-group-01/ch02-descriptive_analysis</id><content type="html" xml:base="https://r-class.github.io/cpp-528-fall-2021-group-01/ch02-descriptive_analysis/">&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# load packages&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cartogram&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# spatial maps w/ tract size bias reduction&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;colorspace&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dplyr&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;geojsonio&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# read shapefiles&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ggplot2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;     &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# graphing &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ggthemes&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# nice formats for ggplots&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gridExtra&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;knitr&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;maptools&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# spatial object manipulation &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mclust&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;      &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# cluster analysis &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;      &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# formatting RMD tables&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RColorBrewer&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;scales&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stargazer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tidycensus&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tidyverse&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tmap&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# theme maps&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tmaptools&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# spatial object manipulation &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;zoom&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;


&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# set stargazer type&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;s.type&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;html&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The following steps were used to load the data and custom functions used in this page:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# load function source files&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# note: all of these are R objects that will be used throughout this .rmd file&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;build_year&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;RELEVANT_FILES&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;obtain_crosswalk&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;create_final_metadata_file&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;compare_dfs&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;jplot&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;sf.pop&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# notice the use of here::here() that points to the .R file&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
           &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# where all these R objects are created&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;.from&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;analysis/utilities_master.R&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;.character_only&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;TRUE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Load data&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;d1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;readRDS&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;data/rodeo/LTDB-1990.rds&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;readRDS&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;data/rodeo/LTDB-2000.rds&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;md&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;readRDS&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;data/rodeo/LTDB-META-DATA.rds&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# check to make sure we are not losing &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# or gaining observations in the merge&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nrow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;## [1] 72693
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;merge d1 and d2&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;d1&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;merge&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;by&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;tractid&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;merge&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;md&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;by&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;tractid&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nrow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;## [1] 72693
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Filter rural districts&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;table&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;urban&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;## 
## rural urban 
## 12971 59722
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;filter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;urban&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;urban&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;identify-common-variables&quot;&gt;Identify Common Variables&lt;/h3&gt;

&lt;p&gt;The vars function can be used to compare variables from two datasets:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;vars&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;compare_dfs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;## [1] &quot;SHARED VARIABLES:&quot;
##   [1] &quot;a15asn&quot;  &quot;a15blk&quot;  &quot;a15hsp&quot;  &quot;a15ntv&quot;  &quot;a15wht&quot;  &quot;a18und&quot;  &quot;a60asn&quot;  &quot;a60blk&quot;  &quot;a60hsp&quot;  &quot;a60ntv&quot;  &quot;a60up&quot;   &quot;a60wht&quot;  &quot;a75up&quot;   &quot;ag15up&quot;  &quot;ag25up&quot;  &quot;ag5up&quot;  
##  [17] &quot;ageasn&quot;  &quot;ageblk&quot;  &quot;agehsp&quot;  &quot;agentv&quot;  &quot;agewht&quot;  &quot;asian&quot;   &quot;china&quot;   &quot;clf&quot;     &quot;cni16u&quot;  &quot;col&quot;     &quot;cuban&quot;   &quot;dapov&quot;   &quot;dbpov&quot;   &quot;dflabf&quot;  &quot;dfmpov&quot;  &quot;dhpov&quot;  
##  [33] &quot;dis&quot;     &quot;dmulti&quot;  &quot;dnapov&quot;  &quot;dpov&quot;    &quot;dwpov&quot;   &quot;empclf&quot;  &quot;family&quot;  &quot;fb&quot;      &quot;fhh&quot;     &quot;filip&quot;   &quot;flabf&quot;   &quot;geanc&quot;   &quot;gefb&quot;    &quot;h10yrs&quot;  &quot;h30old&quot;  &quot;haw&quot;    
##  [49] &quot;hh&quot;      &quot;hha&quot;     &quot;hhb&quot;     &quot;hhh&quot;     &quot;hhw&quot;     &quot;hinc&quot;    &quot;hinca&quot;   &quot;hincb&quot;   &quot;hinch&quot;   &quot;hincw&quot;   &quot;hisp&quot;    &quot;hs&quot;      &quot;hu&quot;      &quot;incpc&quot;   &quot;india&quot;   &quot;iranc&quot;  
##  [65] &quot;irfb&quot;    &quot;itanc&quot;   &quot;itfb&quot;    &quot;japan&quot;   &quot;korea&quot;   &quot;lep&quot;     &quot;manuf&quot;   &quot;mar&quot;     &quot;mex&quot;     &quot;mhmval&quot;  &quot;mrent&quot;   &quot;multi&quot;   &quot;n10imm&quot;  &quot;n65pov&quot;  &quot;napov&quot;   &quot;nat&quot;    
##  [81] &quot;nbpov&quot;   &quot;nfmpov&quot;  &quot;nhblk&quot;   &quot;nhpov&quot;   &quot;nhwht&quot;   &quot;nnapov&quot;  &quot;npov&quot;    &quot;ntv&quot;     &quot;nwpov&quot;   &quot;ohu&quot;     &quot;olang&quot;   &quot;own&quot;     &quot;pop&quot;     &quot;pr&quot;      &quot;prof&quot;    &quot;rent&quot;   
##  [97] &quot;ruanc&quot;   &quot;rufb&quot;    &quot;scanc&quot;   &quot;scfb&quot;    &quot;semp&quot;    &quot;tractid&quot; &quot;unemp&quot;   &quot;vac&quot;     &quot;vet&quot;     &quot;viet&quot;    &quot;wds&quot;    
## [1] &quot;NOT SHARED:&quot;
## [1] &quot;ag16cv&quot;  &quot;ag18cv&quot;  &quot;hu00sp&quot;  &quot;hu90sp&quot;  &quot;ohu00sp&quot; &quot;ohu90sp&quot; &quot;pop90.1&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;create-dataset-for-analysis&quot;&gt;Create Dataset for Analysis&lt;/h3&gt;

&lt;p&gt;Create subset for the analysis&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;d.full&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# keep a copy so don't have to reload &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.full&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# store original in case you need to reset anything&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tractid&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhmval90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhmval00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hinc90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hu90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;own90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rent90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;empclf90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;clf90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unemp90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;prof90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dpov90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;npov90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ag25up90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hs90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop90.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nhwht90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nhblk90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hisp90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;asian90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cbsa&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cbsaname&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mutate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nhwht90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop90.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.black&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nhblk90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop90.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.hisp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hisp90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop90.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.asian&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;asian90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop90.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.hs&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hs90&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ag25up90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.col&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ag25up90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;prof90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;empclf90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.unemp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unemp90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;clf90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;npov90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dpov90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;View summary statistics for wrangled data&lt;/p&gt;

&lt;table style=&quot;text-align:center&quot;&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Statistic

&lt;/td&gt;

&lt;td&gt;

Min

&lt;/td&gt;

&lt;td&gt;

Pctl(25)

&lt;/td&gt;

&lt;td&gt;

Median

&lt;/td&gt;

&lt;td&gt;

Mean

&lt;/td&gt;

&lt;td&gt;

Pctl(75)

&lt;/td&gt;

&lt;td&gt;

Max

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

mhmval90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

58,800

&lt;/td&gt;

&lt;td&gt;

86,500

&lt;/td&gt;

&lt;td&gt;

112,399

&lt;/td&gt;

&lt;td&gt;

141,800

&lt;/td&gt;

&lt;td&gt;

500,001

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

mhmval00

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

81,600

&lt;/td&gt;

&lt;td&gt;

119,900

&lt;/td&gt;

&lt;td&gt;

144,738

&lt;/td&gt;

&lt;td&gt;

173,894

&lt;/td&gt;

&lt;td&gt;

1,000,001

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

hinc90

&lt;/td&gt;

&lt;td&gt;

4,999

&lt;/td&gt;

&lt;td&gt;

24,355

&lt;/td&gt;

&lt;td&gt;

32,033

&lt;/td&gt;

&lt;td&gt;

34,160

&lt;/td&gt;

&lt;td&gt;

41,520

&lt;/td&gt;

&lt;td&gt;

150,001

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

hu90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

916

&lt;/td&gt;

&lt;td&gt;

1,337

&lt;/td&gt;

&lt;td&gt;

1,382

&lt;/td&gt;

&lt;td&gt;

1,804

&lt;/td&gt;

&lt;td&gt;

11,003

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

own90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

422

&lt;/td&gt;

&lt;td&gt;

744

&lt;/td&gt;

&lt;td&gt;

788

&lt;/td&gt;

&lt;td&gt;

1,093

&lt;/td&gt;

&lt;td&gt;

8,180

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

rent90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

168

&lt;/td&gt;

&lt;td&gt;

358

&lt;/td&gt;

&lt;td&gt;

476

&lt;/td&gt;

&lt;td&gt;

663

&lt;/td&gt;

&lt;td&gt;

8,653

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

empclf90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

1,015

&lt;/td&gt;

&lt;td&gt;

1,555

&lt;/td&gt;

&lt;td&gt;

1,625

&lt;/td&gt;

&lt;td&gt;

2,157

&lt;/td&gt;

&lt;td&gt;

11,816

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

clf90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

1,101

&lt;/td&gt;

&lt;td&gt;

1,664

&lt;/td&gt;

&lt;td&gt;

1,732

&lt;/td&gt;

&lt;td&gt;

2,291

&lt;/td&gt;

&lt;td&gt;

12,497

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

unemp90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

49

&lt;/td&gt;

&lt;td&gt;

88

&lt;/td&gt;

&lt;td&gt;

107

&lt;/td&gt;

&lt;td&gt;

143

&lt;/td&gt;

&lt;td&gt;

1,165

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

prof90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

192

&lt;/td&gt;

&lt;td&gt;

359

&lt;/td&gt;

&lt;td&gt;

451

&lt;/td&gt;

&lt;td&gt;

616

&lt;/td&gt;

&lt;td&gt;

6,290

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

dpov90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

2,219

&lt;/td&gt;

&lt;td&gt;

3,250

&lt;/td&gt;

&lt;td&gt;

3,332

&lt;/td&gt;

&lt;td&gt;

4,365

&lt;/td&gt;

&lt;td&gt;

23,619

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

npov90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

112

&lt;/td&gt;

&lt;td&gt;

248

&lt;/td&gt;

&lt;td&gt;

406

&lt;/td&gt;

&lt;td&gt;

526

&lt;/td&gt;

&lt;td&gt;

5,890

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

ag25up90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

1,444

&lt;/td&gt;

&lt;td&gt;

2,121

&lt;/td&gt;

&lt;td&gt;

2,187

&lt;/td&gt;

&lt;td&gt;

2,865

&lt;/td&gt;

&lt;td&gt;

18,461

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

hs90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

626

&lt;/td&gt;

&lt;td&gt;

1,064

&lt;/td&gt;

&lt;td&gt;

1,141

&lt;/td&gt;

&lt;td&gt;

1,559

&lt;/td&gt;

&lt;td&gt;

12,383

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

col90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

162

&lt;/td&gt;

&lt;td&gt;

335

&lt;/td&gt;

&lt;td&gt;

483

&lt;/td&gt;

&lt;td&gt;

652

&lt;/td&gt;

&lt;td&gt;

8,575

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

pop90.x

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

2,283

&lt;/td&gt;

&lt;td&gt;

3,325

&lt;/td&gt;

&lt;td&gt;

3,419

&lt;/td&gt;

&lt;td&gt;

4,464

&lt;/td&gt;

&lt;td&gt;

35,721

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

nhwht90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

1,262

&lt;/td&gt;

&lt;td&gt;

2,424

&lt;/td&gt;

&lt;td&gt;

2,513

&lt;/td&gt;

&lt;td&gt;

3,575

&lt;/td&gt;

&lt;td&gt;

21,561

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

nhblk90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

18

&lt;/td&gt;

&lt;td&gt;

76

&lt;/td&gt;

&lt;td&gt;

426

&lt;/td&gt;

&lt;td&gt;

331

&lt;/td&gt;

&lt;td&gt;

12,121

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

hisp90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

27

&lt;/td&gt;

&lt;td&gt;

75

&lt;/td&gt;

&lt;td&gt;

347

&lt;/td&gt;

&lt;td&gt;

280

&lt;/td&gt;

&lt;td&gt;

13,873

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

asian90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

9

&lt;/td&gt;

&lt;td&gt;

31

&lt;/td&gt;

&lt;td&gt;

111

&lt;/td&gt;

&lt;td&gt;

94

&lt;/td&gt;

&lt;td&gt;

7,899

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.white

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

64

&lt;/td&gt;

&lt;td&gt;

87

&lt;/td&gt;

&lt;td&gt;

74

&lt;/td&gt;

&lt;td&gt;

95

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.black

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

1

&lt;/td&gt;

&lt;td&gt;

3

&lt;/td&gt;

&lt;td&gt;

12

&lt;/td&gt;

&lt;td&gt;

10

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.hisp

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

1

&lt;/td&gt;

&lt;td&gt;

3

&lt;/td&gt;

&lt;td&gt;

10

&lt;/td&gt;

&lt;td&gt;

9

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.asian

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

1

&lt;/td&gt;

&lt;td&gt;

3

&lt;/td&gt;

&lt;td&gt;

3

&lt;/td&gt;

&lt;td&gt;

94

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.hs

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

69

&lt;/td&gt;

&lt;td&gt;

74

&lt;/td&gt;

&lt;td&gt;

74

&lt;/td&gt;

&lt;td&gt;

80

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.col

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

10

&lt;/td&gt;

&lt;td&gt;

18

&lt;/td&gt;

&lt;td&gt;

22

&lt;/td&gt;

&lt;td&gt;

30

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.prof

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

17

&lt;/td&gt;

&lt;td&gt;

25

&lt;/td&gt;

&lt;td&gt;

27

&lt;/td&gt;

&lt;td&gt;

34

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.unemp

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

4

&lt;/td&gt;

&lt;td&gt;

5

&lt;/td&gt;

&lt;td&gt;

7

&lt;/td&gt;

&lt;td&gt;

8

&lt;/td&gt;

&lt;td&gt;

64

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

pov.rate

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

4

&lt;/td&gt;

&lt;td&gt;

8

&lt;/td&gt;

&lt;td&gt;

12

&lt;/td&gt;

&lt;td&gt;

16

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;/table&gt;

&lt;h1 id=&quot;part-01---change-in-home-values&quot;&gt;Part 01 - Change in Home Values&lt;/h1&gt;

&lt;p&gt;Initial conditions in 1990:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Note: inflation calculation based on calculator at westegg.com)&lt;/em&gt;&lt;/p&gt;

&lt;table style=&quot;text-align:center&quot;&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Statistic

&lt;/td&gt;

&lt;td&gt;

Min

&lt;/td&gt;

&lt;td&gt;

Pctl(25)

&lt;/td&gt;

&lt;td&gt;

Median

&lt;/td&gt;

&lt;td&gt;

Mean

&lt;/td&gt;

&lt;td&gt;

Pctl(75)

&lt;/td&gt;

&lt;td&gt;

Max

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

MedianHomeValue1990

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

78,380

&lt;/td&gt;

&lt;td&gt;

115,304

&lt;/td&gt;

&lt;td&gt;

149,828

&lt;/td&gt;

&lt;td&gt;

189,019

&lt;/td&gt;

&lt;td&gt;

666,501

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

MedianHomeValue2000

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

81,600

&lt;/td&gt;

&lt;td&gt;

119,900

&lt;/td&gt;

&lt;td&gt;

144,738

&lt;/td&gt;

&lt;td&gt;

173,894

&lt;/td&gt;

&lt;td&gt;

1,000,001

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Change.90.to.00

&lt;/td&gt;

&lt;td&gt;

\-666,501

&lt;/td&gt;

&lt;td&gt;

\-24,948

&lt;/td&gt;

&lt;td&gt;

\-468

&lt;/td&gt;

&lt;td&gt;

\-5,090

&lt;/td&gt;

&lt;td&gt;

18,080

&lt;/td&gt;

&lt;td&gt;

1,000,001

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;/table&gt;

&lt;h3 id=&quot;histogram-of-mhv&quot;&gt;Histogram of MHV&lt;/h3&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/2021-11-01-ch02-descriptive_analysis_files/figure-gfm/unnamed-chunk-10-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;p&gt;Compare 1990 to 2000 distributions.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/2021-11-01-ch02-descriptive_analysis_files/figure-gfm/unnamed-chunk-11-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;h3 id=&quot;change-in-mhv-1990-2000&quot;&gt;Change in MHV 1990-2000&lt;/h3&gt;

&lt;p&gt;If a home worth $10 million increased in value by $100k over ten years
it would not be that surprising. If a home worth $50k increased by $100k
over the same period that is a growth of 200% and is notable.&lt;/p&gt;

&lt;p&gt;The change in value variable only reports absolute change, but does not
provide a sense of whether that is a big or small amount for the census
tract.&lt;/p&gt;

&lt;p&gt;The percent change variable provides some context for growth rates of
value in census tracts.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# small initial values are skewing percentages&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# an average home value below $10k is really low -&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# these must be mostly vacant lots?&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# interpretation is hard if there were no homes in 2000&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# and thus an artificially low MHV. i don't trust cases&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# that go from homes worth $10k to regular value&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# because it is more likely errors in data or noise&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# than meaningful variance &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# quick filter to remove all of the problematic obs&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# but need to go back and see which cases are problematic&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;


&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;10000&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;NA&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Min.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;1st Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Median&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Mean&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;3rd Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Max.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;NA’s&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;-1&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;-0.1676&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;-0.005433&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.03995&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.1905&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;28.04&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;145&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# add pct.change to d.full dataset to preserve for later&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.full&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# how many cases had increases above 500%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;sum&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;## [1] 26
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# preview tracts with large increases in home values &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# to see if increases make sense &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;filter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;tractid&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhmval90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;mhmval00&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;hinc90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;hu90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;own90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;rent90&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-01-097-000402&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;67489&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;593427&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4999&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;673&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;651&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-04-019-000100&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;73036&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;625000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5060&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;457.6&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22.89&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;382.4&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-12-099-002600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;63800&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;625000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15820&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;242&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;20&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;188&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-13-121-002100&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;32500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;261100&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4999&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1080&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;999&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-17-031-842200&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;21602&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;281776&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6861&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1239&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9.245&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;738.5&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-17-167-001400&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;55000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1e+06&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8927&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;678&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;590&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-26-163-518000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;25000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;314300&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12325&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1227&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;31&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;981.9&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-31-055-001600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;27500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1e+06&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8130&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;715.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.99&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;584.5&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-36-005-011700&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14499&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;128583&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;11423&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;487&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;30&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;424&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-36-005-012102&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;17500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;225000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14850&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;467&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;438&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-36-005-014300&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;38500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;350000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9234&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;265.8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;23.53&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;226.6&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-36-005-023702&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14999&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;132807&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;11795&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;388&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;329&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-36-047-006300&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;43800&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;354000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35827&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;869&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;214&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;612&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-36-047-044100&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;23300&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;206300&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16183&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1769&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;209&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1517&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-36-061-001800&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;42500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;667800&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;19707&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2748&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;65&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2601&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-36-061-005502&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;87500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;992300&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46957&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1017&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;305&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;620&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-36-061-011700&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;101489&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1e+06&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5187&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;56&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;41&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-40-109-102500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;52500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;531300&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5426&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;518&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;21&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;373&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-42-003-020300&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;25127&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;215900&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;19350&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;149.5&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;29.81&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;87.13&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-47-157-000100&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;21500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;209300&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;20671&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;842&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;103&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;528&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-49-035-102500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;36900&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;325000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6110&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;400&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;11&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;349&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-53-033-008200&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;17725&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;190100&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15960&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1703&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;90.88&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1396&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-53-033-009200&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;17307&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;350000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6600&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1058&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;18.49&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;991.6&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-53-035-080800&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;67500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;625000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;21667&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;702&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;693&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-53-063-003500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;20620&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;798100&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6129&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1900&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.99&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1662&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;fips-55-079-014100&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;37500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;450000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6089&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;631&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;587&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;empclf90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;clf90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;unemp90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;prof90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;dpov90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;npov90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;ag25up90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;hs90&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;293&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;535&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;242&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2139&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1857&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;812&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;665&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;162.6&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;181.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;19.31&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;40.21&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;581.4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;358.8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;498.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;312.9&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;448&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;448&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;62&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;575&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;120&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;527&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;421&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;550&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;732&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;182&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;27&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2663&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1862&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1426&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1164&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;261.5&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;502.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;240.8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;41.13&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2430&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1946&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1066&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;953.5&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;294&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;328&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;34&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;126&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;692&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;247&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;710&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;408&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;673.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;840.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;167&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;313&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1743&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;728.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1326&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;700.9&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1164&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1206&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;41.96&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;242.8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;855.2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;448.6&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;631.4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;282.7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;395&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;511&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;116&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;67&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1339&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;523&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;688&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;525&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;342&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;463&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;121&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;20&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1292&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;699&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;618&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;557&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;156.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;203.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;47.06&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;34.86&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;698.1&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;321.6&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;377.4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;309.4&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;295&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;353&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;58&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1268&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;623&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;591&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;498&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1001&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1039&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;38&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;398&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1736&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;187&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1376&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;628&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1907&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2183&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;276&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;169&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5174&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2082&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2942&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2329&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4449&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4783&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;334&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;522&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9247&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2319&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5872&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4722&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1358&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1581&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;223&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;925&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2138&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;433&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1730&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;403&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;18&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;27&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;232&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;197&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;104&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;94&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;212&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;255&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;43&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;76&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;630&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;352&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;596&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;419&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;106&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;116&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;20.75&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;287.2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;50.85&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;206.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;156.9&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;544&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;578&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;34&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;177&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1209&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;537&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;854&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;482&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;409&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;482&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;73&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;45&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;888&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;502&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;805&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;570&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;896.4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;999.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;102.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;203.5&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1877&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;368.2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1636&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;594.7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;713.2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;886.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;173.8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;134.8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1789&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;962.1&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1631&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1115&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;543&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;593&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;50&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;59&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3003&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;450&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1176&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;529&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;447.7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;585.7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;137.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;101.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2149&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1114&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1963&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1257&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;268&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;444&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;176&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;36&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1906&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1557&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;739&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;624&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;col90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;pop90.x&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;nhwht90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;nhblk90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;hisp90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;asian90&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;cbsa&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.002&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2103&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2098&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33660&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;53.07&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;551.8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;328.4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;34.92&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;171.4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.274&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46060&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;550&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;210&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;290&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;48424&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2706&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;320&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2273&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;19&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;87&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12060&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;36.29&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2277&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;42.62&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2195&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33.88&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16974&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;140&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;911&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;770&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;123&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;44100&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;311&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1844&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;416.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1342&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;26&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;48.99&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;19804&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;225.8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2410&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1989&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;191.8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;102.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;114.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;36540&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;24&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1360&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;424&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;914&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35644&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1309&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;120&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1175&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35644&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22.66&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;797.4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.56&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;427.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;346&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35644&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1340&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;66&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;181&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1028&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;52&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35644&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;561&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1699&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1431&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;225&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;27&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35644&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;194&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5280&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;772&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;108&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3489&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;826&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35644&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;500&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9247&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;860&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;187&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1882&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6289&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35644&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1067&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2112&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1614&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;169&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;224&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;99&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35644&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;252&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;41&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;72&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;136&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35644&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;84&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;647&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;449&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;96&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;47&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;36420&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;41.34&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;272.8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;79.78&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;179.2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.923&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.923&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;38300&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;259&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1278&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;423&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;831&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;32820&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;70&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;937&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;646&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;48&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;151&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;41620&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;478.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1938&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1494&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;135.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;69.21&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;188.2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;42644&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;176.6&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1800&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;862.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;309.7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;139.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;437.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;42644&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;103&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3086&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2254&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;279&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;241&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;285&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14740&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;244.8&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2150&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1849&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;94.95&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;61.98&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;28.98&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;44060&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1816&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;43&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1676&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;78&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33340&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;cbsaname&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.white&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.black&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.hisp&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.asian&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.hs&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Mobile, AL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.0951&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;99.76&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.09511&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.04755&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;82.76&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Tucson, AZ&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;59.51&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6.328&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;31.06&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.5933&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;73.45&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;West Palm Beach-Boca Raton-Boynton FL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;38.18&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;52.73&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8.364&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;79.89&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Atlanta-Sandy Springs-Marietta, GA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;11.83&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;84&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.7021&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.215&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;87.24&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Chicago-Naperville-Joliet, IL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.872&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;96.39&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.488&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;92.89&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Springfield, IL&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;84.52&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;13.5&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.098&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.6586&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;77.18&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Detroit-Livonia-Dearborn, MI&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22.61&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;72.78&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.41&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.657&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;76.32&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Omaha-Council Bluffs, NE-IA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;82.55&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.96&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.27&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.768&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;80.54&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;New York-Wayne-White Plains, NY-NJ&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.6618&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;31.18&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;67.21&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;79.8&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;New York-Wayne-White Plains, NY-NJ&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.7639&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9.167&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;89.76&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;91.42&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;New York-Wayne-White Plains, NY-NJ&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.077&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;53.66&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;43.39&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;87.99&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;New York-Wayne-White Plains, NY-NJ&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.925&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;13.51&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;76.72&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.881&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;84.26&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;New York-Wayne-White Plains, NY-NJ&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;84.23&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.8829&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;13.24&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.589&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;86.41&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;New York-Wayne-White Plains, NY-NJ&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14.62&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.045&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;66.08&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.64&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;85.76&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;New York-Wayne-White Plains, NY-NJ&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.022&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;20.35&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;68.01&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;88.93&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;New York-Wayne-White Plains, NY-NJ&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;76.42&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8.002&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.61&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.688&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;84.97&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;New York-Wayne-White Plains, NY-NJ&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.27&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;28.57&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;53.97&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.19&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;90.38&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Oklahoma City, OK&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;69.4&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14.84&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.264&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.082&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;84.4&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Pittsburgh, PA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;29.24&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;65.68&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.904&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.438&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;96.12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Memphis, TN-MS-AR&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33.1&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;65.02&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.2347&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.095&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;86.77&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Salt Lake City, UT&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;68.94&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5.123&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.12&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.909&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;79.5&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Seattle-Bellevue-Everett, WA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;77.09&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.011&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.571&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9.707&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;65.61&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Seattle-Bellevue-Everett, WA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;47.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;17.2&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.74&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;24.29&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;79.16&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Bremerton-Silverdale, WA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;73.04&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9.041&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;7.809&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;9.235&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;53.74&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Spokane, WA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;86&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.417&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.883&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.348&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;76.53&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Milwaukee-Waukesha-West Allis, WI&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.368&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;92.29&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.295&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.7709&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;84.44&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.col&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.prof&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;p.unemp&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;pov.rate&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0.8622&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.778&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;45.23&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;86.82&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.65&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;24.73&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.61&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;61.7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;13.84&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;20.87&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5.61&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;4.909&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;24.86&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;69.92&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.406&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.73&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;47.94&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;80.06&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;19.72&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;42.86&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.37&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35.69&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;23.45&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46.44&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;19.86&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;41.82&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35.76&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;20.86&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.48&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;52.45&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.488&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.96&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22.7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;39.06&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1.294&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5.848&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;26.13&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;54.1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6.005&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22.22&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;23.08&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46.07&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2.712&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.43&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;49.13&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;40.77&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;39.76&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.657&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.77&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6.594&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8.862&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12.64&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;40.24&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8.515&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;11.73&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;6.983&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;25.08&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;61.68&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;68.11&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14.1&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;20.25&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;55.56&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;33.33&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;84.91&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14.09&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;35.85&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;16.86&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;55.87&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;20.04&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;19.58&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8.621&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;17.7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;30.33&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;32.54&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;5.882&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;44.42&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8.696&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;11&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;15.15&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;56.53&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;29.24&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22.7&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.3&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;19.61&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.82&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;18.9&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;19.59&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;53.77&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8.759&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;10.87&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;8.432&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;14.99&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;12.47&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;22.76&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;23.55&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;51.86&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;13.43&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;39.64&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;81.69&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Plot the percent change variable:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/2021-11-01-ch02-descriptive_analysis_files/figure-gfm/unnamed-chunk-15-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;h3 id=&quot;group-growth-rates-by-metro-area&quot;&gt;Group Growth Rates By Metro Area&lt;/h3&gt;

&lt;p&gt;We often want to disagregate descriptives by some grouping in the data,
such as metro areas.&lt;/p&gt;

&lt;p&gt;dplyr makes this easy by grouping then summarizing the data.&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;TRUE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;group_by&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cbsaname&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summarize&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ave.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ave.change.d&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dollar&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ave.change&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ungroup&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;arrange&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;growth&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ave.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;25&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;cbsaname&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;ave.change.d&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;growth&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Corvallis, OR&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$72,594&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;73.71&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Portland-Vancouver-Beaverton, OR-WA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$67,180&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;70.12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Salt Lake City, UT&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$59,924&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;67.38&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Boulder, CO&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$92,987&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;66.91&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Provo-Orem, UT&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$59,081&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;66.2&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Salem, OR&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$48,018&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;59.7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Eugene-Springfield, OR&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$50,238&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;59.54&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Fort Collins-Loveland, CO&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$56,292&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;54.78&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Longview, WA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$39,921&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;53.55&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Missoula, MT&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$44,774&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;52.85&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Jackson, MI&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$27,679&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;51.92&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Greeley, CO&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$40,425&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;50.21&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Wenatchee, WA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$44,681&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;48.98&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Detroit-Livonia-Dearborn, MI&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$28,082&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;47.92&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Yakima, WA&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$30,346&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;47.88&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Ogden-Clearfield, UT&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$41,282&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;47.06&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Denver-Aurora, CO&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$50,896&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;46.49&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Monroe, MI&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$41,015&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;45.94&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Bay City, MI&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$26,081&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;45.6&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Logan, UT-ID&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$34,737&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;45&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Eau Claire, WI&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$27,247&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;41.62&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Madison, WI&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$42,128&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;40.75&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Sioux Falls, SD&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$30,340&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;39.73&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Grand Junction, CO&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$33,811&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;39.52&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Mount Vernon-Anacortes, WA a&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$41,121&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;39.23&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;comparison&quot;&gt;Comparison&lt;/h3&gt;

&lt;p&gt;How do changes in home value differ between the 1990-2000 period and
2000-2010?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;There is a notable difference in how home values changed during the two
timeframes. In the first decade (1990 - 2010), home values actually
decreased, although minimally (less than $5000 on average, when
accounting for inflation). In the second decade (2000 - 2010), home
values increased by an average of $36,000. The changes in the 90’s
decade were more evenly distributed, whereas in the 2000’s the
distribution was right-skewed, indicating more high-end outliers.&lt;/em&gt;&lt;/p&gt;

&lt;h1 id=&quot;part-02---measuring-gentrification&quot;&gt;Part 02 - Measuring Gentrification&lt;/h1&gt;

&lt;p&gt;The original merged dataset we saved as d.full so we don’t need to
reload it:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;d.full&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.full&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.full&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.full&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;select-gentrification-variables&quot;&gt;Select Gentrification Variables&lt;/h3&gt;

&lt;p&gt;Select variables for operationalizing a definition of gentrification:&lt;/p&gt;

&lt;p&gt;We need to add some variables from 2000:&lt;/p&gt;

&lt;p&gt;Recall we created a 1990 to 2000 variable list for reference:&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;vars&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;type&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;variables&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;shared&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;shared&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15blk&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;shared&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15hsp&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;shared&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15ntv&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;shared&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15wht&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;shared&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a18und&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;d3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.full&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
             
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tractid&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cbsa&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cbsaname&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# ids / units of analysis&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# home value &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hinc90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hu90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;own90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rent90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# ses&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hinc00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hu00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;own00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rent00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;empclf90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;clf90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unemp90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;prof90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# employment &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;empclf00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;clf00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unemp00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;prof00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dpov90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;npov90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;                     &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# poverty&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dpov00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;npov00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ag25up90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hs90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;              &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# education &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ag25up00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hs00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop90.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nhwht90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nhblk90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hisp90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;asian90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# race&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop00.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nhwht00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nhblk00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hisp00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;asian00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             
          &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# end select&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;


&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mutate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
          &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# 1990 variables&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nhwht90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop90.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.black.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nhblk90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop90.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.hisp.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hisp90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop90.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.asian.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;asian90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop90.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.hs.edu.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hs90&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ag25up90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.col.edu.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ag25up90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;prof90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;empclf90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.unemp.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unemp90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;clf90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;npov90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dpov90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          
          &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# 2000 variables&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nhwht00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop00.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.black.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nhblk00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop00.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.hisp.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hisp00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop00.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.asian.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;asian00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pop00.x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.hs.edu.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hs00&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ag25up00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.col.edu.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ag25up00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.prof.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;prof00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;empclf00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.unemp.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unemp00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;clf00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pov.rate.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;npov00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dpov00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;group_by&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cbsaname&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mutate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.mhv.pct.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ntile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.mhv.pct.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ntile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.median.pay.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hinc90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.median.pay.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;median&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hinc00&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.race.rank.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ntile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white.90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ungroup&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mutate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.mhv.pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.mhv.pct.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.mhv.pct.90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pay.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.median.pay.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.median.pay.90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;race.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p.white.90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.00&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Descriptive Statistics of Change Variables&lt;/p&gt;

&lt;table style=&quot;text-align:center&quot;&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

Statistic

&lt;/td&gt;

&lt;td&gt;

Min

&lt;/td&gt;

&lt;td&gt;

Pctl(25)

&lt;/td&gt;

&lt;td&gt;

Median

&lt;/td&gt;

&lt;td&gt;

Mean

&lt;/td&gt;

&lt;td&gt;

Pctl(75)

&lt;/td&gt;

&lt;td&gt;

Max

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

mhv.90

&lt;/td&gt;

&lt;td&gt;

11,827

&lt;/td&gt;

&lt;td&gt;

78,647

&lt;/td&gt;

&lt;td&gt;

115,438

&lt;/td&gt;

&lt;td&gt;

150,192

&lt;/td&gt;

&lt;td&gt;

189,286

&lt;/td&gt;

&lt;td&gt;

666,501

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

mhv.00

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

81,600

&lt;/td&gt;

&lt;td&gt;

119,900

&lt;/td&gt;

&lt;td&gt;

144,738

&lt;/td&gt;

&lt;td&gt;

173,894

&lt;/td&gt;

&lt;td&gt;

1,000,001

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

mhv.change

&lt;/td&gt;

&lt;td&gt;

\-666,501

&lt;/td&gt;

&lt;td&gt;

\-25,072

&lt;/td&gt;

&lt;td&gt;

\-554

&lt;/td&gt;

&lt;td&gt;

\-5,586

&lt;/td&gt;

&lt;td&gt;

17,977

&lt;/td&gt;

&lt;td&gt;

963,343

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

pct.change

&lt;/td&gt;

&lt;td&gt;

\-1

&lt;/td&gt;

&lt;td&gt;

\-0

&lt;/td&gt;

&lt;td&gt;

\-0

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

28

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.white.90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

64

&lt;/td&gt;

&lt;td&gt;

87

&lt;/td&gt;

&lt;td&gt;

74

&lt;/td&gt;

&lt;td&gt;

95

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.black.90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

1

&lt;/td&gt;

&lt;td&gt;

3

&lt;/td&gt;

&lt;td&gt;

12

&lt;/td&gt;

&lt;td&gt;

10

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.hisp.90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

1

&lt;/td&gt;

&lt;td&gt;

3

&lt;/td&gt;

&lt;td&gt;

10

&lt;/td&gt;

&lt;td&gt;

9

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.asian.90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

1

&lt;/td&gt;

&lt;td&gt;

3

&lt;/td&gt;

&lt;td&gt;

3

&lt;/td&gt;

&lt;td&gt;

94

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.hs.edu.90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

69

&lt;/td&gt;

&lt;td&gt;

74

&lt;/td&gt;

&lt;td&gt;

74

&lt;/td&gt;

&lt;td&gt;

80

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.col.edu.90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

10

&lt;/td&gt;

&lt;td&gt;

18

&lt;/td&gt;

&lt;td&gt;

22

&lt;/td&gt;

&lt;td&gt;

30

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.prof.90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

17

&lt;/td&gt;

&lt;td&gt;

25

&lt;/td&gt;

&lt;td&gt;

27

&lt;/td&gt;

&lt;td&gt;

34

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.unemp.90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

4

&lt;/td&gt;

&lt;td&gt;

5

&lt;/td&gt;

&lt;td&gt;

7

&lt;/td&gt;

&lt;td&gt;

8

&lt;/td&gt;

&lt;td&gt;

64

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

pov.rate.90

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

4

&lt;/td&gt;

&lt;td&gt;

8

&lt;/td&gt;

&lt;td&gt;

12

&lt;/td&gt;

&lt;td&gt;

16

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.white.00

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

47

&lt;/td&gt;

&lt;td&gt;

78

&lt;/td&gt;

&lt;td&gt;

67

&lt;/td&gt;

&lt;td&gt;

91

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.black.00

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

1

&lt;/td&gt;

&lt;td&gt;

4

&lt;/td&gt;

&lt;td&gt;

14

&lt;/td&gt;

&lt;td&gt;

14

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.hisp.00

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

2

&lt;/td&gt;

&lt;td&gt;

4

&lt;/td&gt;

&lt;td&gt;

13

&lt;/td&gt;

&lt;td&gt;

15

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.asian.00

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

1

&lt;/td&gt;

&lt;td&gt;

2

&lt;/td&gt;

&lt;td&gt;

5

&lt;/td&gt;

&lt;td&gt;

5

&lt;/td&gt;

&lt;td&gt;

95

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.hs.edu.00

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

67

&lt;/td&gt;

&lt;td&gt;

72

&lt;/td&gt;

&lt;td&gt;

72

&lt;/td&gt;

&lt;td&gt;

77

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.col.edu.00

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

12

&lt;/td&gt;

&lt;td&gt;

21

&lt;/td&gt;

&lt;td&gt;

26

&lt;/td&gt;

&lt;td&gt;

36

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.prof.00

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

23

&lt;/td&gt;

&lt;td&gt;

31

&lt;/td&gt;

&lt;td&gt;

34

&lt;/td&gt;

&lt;td&gt;

43

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

p.unemp.00

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

3

&lt;/td&gt;

&lt;td&gt;

5

&lt;/td&gt;

&lt;td&gt;

6

&lt;/td&gt;

&lt;td&gt;

8

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

pov.rate.00

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

4

&lt;/td&gt;

&lt;td&gt;

9

&lt;/td&gt;

&lt;td&gt;

12

&lt;/td&gt;

&lt;td&gt;

17

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

metro.mhv.pct.90

&lt;/td&gt;

&lt;td&gt;

1

&lt;/td&gt;

&lt;td&gt;

20

&lt;/td&gt;

&lt;td&gt;

41

&lt;/td&gt;

&lt;td&gt;

45

&lt;/td&gt;

&lt;td&gt;

68

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

metro.mhv.pct.00

&lt;/td&gt;

&lt;td&gt;

1

&lt;/td&gt;

&lt;td&gt;

20

&lt;/td&gt;

&lt;td&gt;

41

&lt;/td&gt;

&lt;td&gt;

45

&lt;/td&gt;

&lt;td&gt;

68

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

metro.median.pay.90

&lt;/td&gt;

&lt;td&gt;

14,871

&lt;/td&gt;

&lt;td&gt;

28,906

&lt;/td&gt;

&lt;td&gt;

32,457

&lt;/td&gt;

&lt;td&gt;

32,924

&lt;/td&gt;

&lt;td&gt;

35,833

&lt;/td&gt;

&lt;td&gt;

52,374

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

metro.median.pay.00

&lt;/td&gt;

&lt;td&gt;

23,012

&lt;/td&gt;

&lt;td&gt;

39,457

&lt;/td&gt;

&lt;td&gt;

43,139

&lt;/td&gt;

&lt;td&gt;

45,054

&lt;/td&gt;

&lt;td&gt;

49,522

&lt;/td&gt;

&lt;td&gt;

73,701

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

metro.mhv.pct.change

&lt;/td&gt;

&lt;td&gt;

\-99

&lt;/td&gt;

&lt;td&gt;

\-5

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

0

&lt;/td&gt;

&lt;td&gt;

6

&lt;/td&gt;

&lt;td&gt;

99

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

pay.change

&lt;/td&gt;

&lt;td&gt;

4,930

&lt;/td&gt;

&lt;td&gt;

9,775

&lt;/td&gt;

&lt;td&gt;

11,441

&lt;/td&gt;

&lt;td&gt;

12,130

&lt;/td&gt;

&lt;td&gt;

14,001

&lt;/td&gt;

&lt;td&gt;

26,211

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

race.change

&lt;/td&gt;

&lt;td&gt;

\-100

&lt;/td&gt;

&lt;td&gt;

\-12

&lt;/td&gt;

&lt;td&gt;

\-5

&lt;/td&gt;

&lt;td&gt;

\-8

&lt;/td&gt;

&lt;td&gt;

\-2

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:left&quot;&gt;

metro.race.rank.90

&lt;/td&gt;

&lt;td&gt;

1

&lt;/td&gt;

&lt;td&gt;

20

&lt;/td&gt;

&lt;td&gt;

41

&lt;/td&gt;

&lt;td&gt;

45

&lt;/td&gt;

&lt;td&gt;

68

&lt;/td&gt;

&lt;td&gt;

100

&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;

&lt;td colspan=&quot;7&quot; style=&quot;border-bottom: 1px solid black&quot;&gt;

&lt;/td&gt;

&lt;/tr&gt;

&lt;/table&gt;

&lt;h3 id=&quot;operationalizing-gentrification&quot;&gt;Operationalizing Gentrification&lt;/h3&gt;

&lt;p&gt;Which definition did you select for gentrification, and how would you
operationalize it?&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# income&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# percent white&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# home values absolute&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# home value relative to metro&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# education stats ?&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# employment stats ?&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# income stats ?&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# growth of pop per tract (density) ?&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;


&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# home value in lower than average home in a metro in 1990&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;poor.1990&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d3&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.mhv.pct.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;50&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# above average diversity for metro&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;diverse.1990&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d3&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.race.rank.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;50&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# home values increased more than overall city gains &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# change in percentile rank within the metro&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.pct.increase&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d3&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metro.mhv.pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# faster than average growth  &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# 25% growth in value is median for the country&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;home.val.rise&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d3&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;25&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# proportion of whites increases by more than 3 percent &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# measured by increase in white&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;loss.diversity&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d3&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;race.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;g.flag&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;poor.1990&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;diverse.1990&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.pct.increase&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;home.val.rise&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;loss.diversity&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.candidates&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;sum&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;poor.1990&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;diverse.1990&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.gentrified&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;sum&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;g.flag&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;na.rm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.gentrified&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;## [1] 0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;num.candidates&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;## [1] 17560
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;num.gentrified&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num.candidates&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;## [1] 0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;By this definition only 5.7 percent of urban tracts experience
gentrification between 2000 and 2010.&lt;/p&gt;

&lt;p&gt;This might skew numbers?&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# small initial values are skewing percentages&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# an average home value below $10k is really low -&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# these must be mostly vacant lots?&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;NA&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mhv.90&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Min.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;1st Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Median&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Mean&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;3rd Qu.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Max.&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;NA’s&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;-100&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;-16.76&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;-0.5433&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;3.995&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;19.05&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2804&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;145&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;discussion&quot;&gt;Discussion&lt;/h3&gt;

&lt;p&gt;What do you think? Is that the right way to operationalize it? Do you
care about relative diversity (more diverse neighborhood than rest of
the city) or absolute (percentage of non-whites regardless of city
diversity).&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I do think relative diversity is important; a neighborhood in areas
with a higher percentage of whites might be considered more diverse at
10% than a more diverse neighborhood would be at 50%. In other words, if
an area has 70% non-whites, a neighborhood with 10% non-whites is a big
difference from a neighborhood with 10% non-whites in an area with 30%
non-whites.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Do we care about absolute increase in value, or relative to the national
average? The national average would include all of the gentrifying
tracts, which could skew it upward and thus make it a poor benchmark?
Maybe look at the average increase in value for non-gentrification
candadidates?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I agree that the national average would skew the data for the same
reason relative diversity is imporant; home values differ drastically
from one area to another - even within the same state.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;In order to define gentrification, I believe changes in both home value
and diversity need to be looked at from a relative perspective. How much
did home values change compared to surrounding tracts? How did diversity
change compared to surrounding tracts? Comparing it to nearby tracts
(maybe within the same county) would give the most accurate description
of the relative change and thus gentrification.&lt;/em&gt;&lt;/p&gt;

&lt;h1 id=&quot;part-03---spatial-patterns&quot;&gt;Part 03 - Spatial Patterns&lt;/h1&gt;

&lt;p&gt;Histograms and scatterplots help us understand the statistical
properties and relationships between variables in our dataset. Due to
the nature of cities, these relationships are all shaped by their
location in the city. Geography matters a great deal in urban policy, so
it should not be ignored.&lt;/p&gt;

&lt;p&gt;Simple simple choropleth maps can be extremely helpful in understanding
relationships in the data.&lt;/p&gt;

&lt;p&gt;I have created a dorling cartogram file of San Francisco, California.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/2021-11-01-ch02-descriptive_analysis_files/figure-gfm/unnamed-chunk-24-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I did the following steps to merge the data before creating my geojson&lt;/em&gt;&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#grep( &quot;^SAN FRAN&quot;, crosswalk$msaname, value=TRUE ) &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#these.sf &amp;lt;- crosswalk$msaname == &quot;SAN FRANCISCO, CA&quot;   # Find San Francisco (T/F)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#these.fips &amp;lt;- crosswalk$fipscounty[ these.sanfran ]         # Find SF counties&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#these.fips &amp;lt;- na.omit( these.fips )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#state.fips &amp;lt;- substr( these.fips, 1, 2 )                    # Substring state code&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#county.fips &amp;lt;- substr( these.fips, 3, 5 )                   # substring county codes&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#sf.pop &amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#  get_acs( geography = &quot;tract&quot;, variables = &quot;B01003_001&quot;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#           state = &quot;06&quot;, county = county.fips[state.fips==&quot;06&quot;], geometry = TRUE ) %&amp;gt;% &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#  select( GEOID, estimate ) %&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#  rename( POP=estimate )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# convert tractid to geoid&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d.full$geoid &amp;lt;- gsub( &quot;-&quot;, &quot;&quot;, d.full$tractid)    # remove dashes&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#d.full$geoid &amp;lt;- substr( d.full$geoid, 5, 16 )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;


&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# merge with census data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#sf &amp;lt;- merge(sf.pop, d.full, by.x = &quot;GEOID&quot;, by.y = &quot;geoid&quot;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;home-values&quot;&gt;Home Values&lt;/h3&gt;

&lt;p&gt;Describe the distribution of home values in 1990 - where are high and
low-value tracts located in the city/cities?&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/2021-11-01-ch02-descriptive_analysis_files/figure-gfm/unnamed-chunk-26-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;As can be anticipated with most cities at this time, the inner city
tracts had the lowest values and the farther from the city center the
tract is, the higher the median value (with a few exceptions).&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Compare values in 2000 to changes in values from 1990-2000. Do the
largest gains occur in tracts with above or below-average home prices in
2000?&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/2021-11-01-ch02-descriptive_analysis_files/figure-gfm/unnamed-chunk-27-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;
&lt;img src=&quot;../assets/img/2021-11-01-ch02-descriptive_analysis_files/figure-gfm/unnamed-chunk-27-2.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The largest changes occur in tracts with above-average home prices in 1990. Tracts with below-average prices continued to drop while those
with higher prices increased.&lt;/em&gt;&lt;/p&gt;

&lt;h3 id=&quot;gentrification&quot;&gt;Gentrification&lt;/h3&gt;

&lt;p&gt;Create a map that highlights tracts that are candidates for
gentrification in 2000 and tracts that gentrify between 1990 and 2000.&lt;/p&gt;

&lt;p&gt;Do you find any meaningful patterns in where gentrification occurs?&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#Add wrangled census data to sf.pop and create spatial file&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;census.dat&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d.full&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# convert tractid to geoid&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;census.dat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;geoid&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gsub&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;-&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;census.dat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tractid&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# remove dashes&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;census.dat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;geoid&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;substr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;census.dat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;geoid&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;16&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;


&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# merge with census data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;merge&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf.pop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;census.dat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;by.x&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;GEOID&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;by.y&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;geoid&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;st_is_empty&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# convert sf map object to an sp version&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf.sp&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;as_Spatial&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#plot to view&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf.sp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/2021-11-01-ch02-descriptive_analysis_files/figure-gfm/unnamed-chunk-28-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Use RColorBrewer to create color pallette to show median home value distribution&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;my_colors&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;brewer.pal&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;YlOrBr&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;my_colors&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;colorRampPalette&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;my_colors&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
 
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# Attribute the appropriate color to each tract of the Philadelphia area based on median home value in 2010&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;class_of_city&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cut&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf.sp&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pct.change&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;m&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;my_colors&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;my_colors&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;as.numeric&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;class_of_city&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# Plot to view, can change bg color code: https://txwes.libguides.com/c.php?g=978475&amp;amp;p=7075536&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf.sp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;my_colors&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bg&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;#FFFFFF&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;zm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;../assets/img/2021-11-01-ch02-descriptive_analysis_files/figure-gfm/unnamed-chunk-29-1.png&quot; alt=&quot;&quot; /&gt;&lt;!-- --&gt;&lt;/p&gt;

&lt;p&gt;The tracts with the highest percentage growth between 1990 and 2000, as
seen by the darkest colors (the brown and orange tracts), are right in
the heart of San Francisco close to what is known as the financial
district, and Chinatown.&lt;/p&gt;

&lt;h2 id=&quot;reference&quot;&gt;Reference&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Mychal Cohen , Kathryn L.S. Pettit , “GUIDE TO MEASURING NEIGHBORHOOD CHANGE TO UNDERSTAND AND PREVENT DISPLACEMENT”, APRIL 2019 Web. 23 November 2021. Available from https://watts-college.github.io/cpp-528-fall-2021/articles/gentrification/guide_to_measuring_neighborhood_change_to_understand_and_prevent_displacement.pdf”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Urban Displacement , “UDP-Gentrification-Methodology” , 2012 , Web. 16 November 2021. [PDF File] Available from “https://watts-college.github.io/cpp-528-fall-2021/articles/gentrification/udp-gentrification-methodology-austin.pdf”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Urban Displacement , “Urban Displacement Project’s Methodology for San Francisco Bay Area, California, USA” , 2012 , Web. 16 November 2021. [PDF File] Available from “https://watts-college.github.io/cpp-528-fall-2021/articles/gentrification/udp-gentrification-methodology-sf.pdf”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Watts-College , “Descriptive Analysis” , October 29, 2021 ,  Web. 16 November 2021. Available from “https://watts-college.github.io/cpp-528-fall-2021/labs/lab-03-instructions.html”&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;</content><author><name>Ahmed Rashwan, Alev Yildiz, April Peck, and Erin McIntyre</name></author><summary type="html">``` r load packages library( cartogram ) # spatial maps w/ tract size bias reduction library( colorspace ) library( dplyr ) library( geojsonio ) # read shapefiles library( ggplot2 ) # graphing library( ggthemes ) # nice formats for ggplots library( gridExtra ) library( here ) library( import ) library( knitr ) library( maptools ) # spatial object manipulation library( mclust ) # cluster analysis library( pander ) # formatting RMD tables library( RColorBrewer ) library( scales ) library( sf ) library( sp ) library( stargazer) library( tidycensus ) library( tidyverse ) library( tmap ) # theme maps library( tmaptools ) # spatial object manipulation library( zoom )</summary></entry><entry><title type="html">Data Management - Metrics of Neighborhood Change</title><link href="https://r-class.github.io/cpp-528-fall-2021-group-01/ch01-data_management/" rel="alternate" type="text/html" title="Data Management - Metrics of Neighborhood Change" /><published>2021-10-27T00:00:00+00:00</published><updated>2021-10-27T00:00:00+00:00</updated><id>https://r-class.github.io/cpp-528-fall-2021-group-01/ch01-data_management</id><content type="html" xml:base="https://r-class.github.io/cpp-528-fall-2021-group-01/ch01-data_management/">&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Install necessary packages&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;install.packages&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;here&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;running-needed-packages&quot;&gt;Running Needed Packages&lt;/h3&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# load necessary packages&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tidyverse&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;part-1-data-concordance&quot;&gt;Part 1: Data Concordance&lt;/h3&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Reading data files from specific file paths in my desktop&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;


&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# store data dictionary file path&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;DD_FILEPATH&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;data/raw/Ahmeds-ltdb_data_dictionary.csv&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# import data dictionary&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dd&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read.csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;DD_FILEPATH&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;header&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fill&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stringsAsFactors&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;root&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;root2&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;category&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;definition&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1970.f&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;an area of land, typically a large one.&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county are identified by a 4-digit basic code between 0001 and 9999&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;TRTID10&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract attribute&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;both metropolitan statistical areas and micropolitan areas&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ccflag&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ccflag&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract attribute&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ccflag10&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1970.s&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1980.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1980.s&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1990.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1990.s&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X2000.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X2000.s&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;TRTID10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;TRTID10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;TRTID10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;TRTID10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;TRTID10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;TRTID10&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ccflag10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ccflag10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ccflag10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ccflag10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ccflag10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ccflag10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ccflag10&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X2010.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X2010.s&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;statea&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;countya&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tracta&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tractid&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tractid&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# rename columns to lower case in both data frames &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;


&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dd&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;as.data.frame&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sapply&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tolower&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ltdb.data&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;-&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;as.data.frame&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sapply&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tolower&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# view a subset of columns &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;15&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;17&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt; &lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;root&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;root2&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;category&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;definition&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;3&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;an area of land, typically a large one.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;4&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county are identified by a 4-digit basic code between 0001 and 9999&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;5&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract attribute&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;both metropolitan statistical areas and micropolitan areas&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;15&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age-race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0-15 years old of asians and pacific islanders&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;16&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15blk&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15blk&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age-race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;percentage of 0-15 years old of black race&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;17&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15hsp&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15hsp&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age-race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0-15 years old, persons of hispanic origins&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt; &lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1970.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1970.s&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1980.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1980.s&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1990.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1990.s&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;3&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;4&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid10&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;5&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;15&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;16&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15blk70&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15blk80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15blk90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;17&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15hsp80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15hsp90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt; &lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X2000.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X2000.s&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X2010.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X2010.s&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;statea&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;countya&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;3&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tracta&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;4&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tractid&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tractid&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;5&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cbsa10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;15&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn00&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;16&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15blk00&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15blk10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15blk12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;17&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15hsp00&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15hsp10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15hsp12&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;part-2-build-a-variable-filter&quot;&gt;Part 2: Build a Variable Filter&lt;/h3&gt;

&lt;h3 id=&quot;loading-functions-from-utilities_masterr-file&quot;&gt;Loading functions from utilities_master.R file&lt;/h3&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Loading functions from source files&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;today&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;cat_filter&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;search_description&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;search_years&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# notice the use of here::here() that points to the .R file&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# where all these R objects are created&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;.from&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;analysis/utilities_master.R&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
             &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;.character_only&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;TRUE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;## Getting data from the 2015-2019 5-year ACS

## Downloading feature geometry from the Census website.  To cache shapefiles for use in future sessions, set `options(tigris_use_cache = TRUE)`.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;run-functions&quot;&gt;Run functions&lt;/h3&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Run the date function&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;today&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;## [1] &quot;December 02, 2021&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h4 id=&quot;cat_filter--function-that-takes-as-an-argument-one-or-more-of-the-groups-that-we-just-created-in-the-concordance-file-under-the-category-field-and-returns-all-of-the-variables-associated-with-that-group&quot;&gt;cat_filter () function that takes as an argument one or more of the groups that we just created in the concordance file under the “category” field and returns all of the variables associated with that group.&lt;/h4&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# will need to load (tidyverse) library &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# search.cat will work in combination of multiple search terms &lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# search.cat &amp;lt;- c(&quot;first search term&quot; ,&quot;second search term&quot; , &quot;third search term&quot; )&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# example = search.cat &amp;lt;- c(&quot;family&quot; , &quot;nationality&quot;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cat_filter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;age&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;race&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;root&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;root2&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;category&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;definition&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1970.f&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a60up&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a60up&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;persons age 60 years and over&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a60up70&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag15up&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag15up&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;population 15 years and over&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag15up70&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag18cv&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag18cv&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;civilian population 18 years and over&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag5up&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag5up&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;persons 5 years and over&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;black&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;black&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;persons of black race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;black70&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cni16u&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cni16u&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;civilian non-institutionalized persons 16-64 years old&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;dflabf&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;dflabf&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;females 16 years and over, except in armed forces&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;hisp&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;hisp&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;persons of hispanic origin&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;india&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;india&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;persons of asian indian race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;india70&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;irfb&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;irfb&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;persons who were born in ireland&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1970.s&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1980.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1980.s&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1990.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X1990.s&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X2000.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X2000.s&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a60up80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a60up90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a60up00&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag15up80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag15up90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag15up00&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag18cv00&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag5up80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag5up90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag5up00&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cni16u70&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cni16u80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cni16u90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cni16u00&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;dflabf70&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;dflabf80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;dflabf90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;dflabf00&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;hisp80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;hisp90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;hisp00&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;india80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;india90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;india00&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;irfb70&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;irfb80&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;irfb90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;irfb00&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Table continues below&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X2010.f&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;X2010.s&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a60up10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a60up12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag15up12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag18cv12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;ag5up12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;dflabf12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;hisp10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;hisp12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;india10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;india12&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;irfb12&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h4 id=&quot;search_description--function-that-searches-variable-descriptions-for-a-specific-string-and-returns-any-variables-that-match-for-example-if-i-searched-for-income-i-would-want-variables-like-median-household-income-and-per-capita-income&quot;&gt;search_description () function that searches variable descriptions for a specific string and returns any variables that match. For example, if I searched for “income” I would want variables like median household income and per capita income.&lt;/h4&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# For example, if I searched for &quot;income&quot; I would want variables like median household income and per capita income.&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;search_description&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dd&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;*income*&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt; &lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;root&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;category&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;definition&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;77&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;hinc&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;socioeconomic status&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;median hh income, total&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;78&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;hinca&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;socioeconomic status&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;median hh income, asian/pi&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;79&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;hincb&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;socioeconomic status&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;median hh income, blacks&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;80&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;hinch&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;socioeconomic status&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;median hh income, hispanics&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;81&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;hincw&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;socioeconomic status&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;median hh income, whites&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;89&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;incpc&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;socioeconomic status&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;per capita income&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h4 id=&quot;search_years-function-to-filter-variables-by-time-periods-specifically-the-user-will-specify-the-time-periods-of-interest-for-the-study-and-the-function-will-identify-all-variables-that-have-measures-for-those-periods-for-example-i-if-i-want-to-use-the-data-for-a-study-that-covers-1990-2000-and-2010-which-variables-are-available-for-all-three-periods&quot;&gt;search_years() function to filter variables by time periods. Specifically, the user will specify the time periods of interest for the study and the function will identify all variables that have measures for those periods. For example, I if I want to use the data for a study that covers 1990, 2000, and 2010 which variables are available for all three periods.&lt;/h4&gt;

&lt;div class=&quot;language-r highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# The user will specify the time periods of interest for the study .&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# Function will identify all variables that have measures for those periods .&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;search_years&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;1990&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2000&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2010&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&amp;gt;%&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pander&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;root&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;year&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;variable&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;category&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;definition&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1990&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2010&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2010&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;statea&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;state&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1990&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2010&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2010&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;countya&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1990&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;an area of land, typically a large one.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;an area of land, typically a large one.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2010&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;an area of land, typically a large one.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tract&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2010&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tracta&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;an area of land, typically a large one.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1990&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county are identified by a 4-digit basic code between 0001 and 9999&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county are identified by a 4-digit basic code between 0001 and 9999&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;trtid&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2010&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tractid&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;id&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;county are identified by a 4-digit basic code between 0001 and 9999&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1990&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age-race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0-15 years old of asians and pacific islanders&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2000&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn00&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age-race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0-15 years old of asians and pacific islanders&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2010&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn10&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age-race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0-15 years old of asians and pacific islanders&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;2010&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15asn12&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age-race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;0-15 years old of asians and pacific islanders&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15blk&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;1990&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;a15blk90&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;age-race&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;percentage of 0-15 years old of black race&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Bryan , Jenny . “Naming things” , Reproducible Science Workshop, 2014.Web. 2 November 2021. [PDF file]. Available from “https://www2.stat.duke.edu/~rcs46/lectures_2015/01-markdown-git/slides/naming-slides/naming-slides.pdf”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Kappal , Sunil “Useful R Packages that Aligns with The CRISP DM Methodology” February 6, 2017 ,  Web. 4 November 2021 , Available from “https://www.datasciencecentral.com/profiles/blogs/userful-r-packages-that-aligns-with-the-crisp-dm-methodology”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;IBM Corporation ,”IBM SPSS Modeler CRISP-DM Guide” 1994, 2011 , Web. 3 November 2021. [PDF file]. Available from “https://inseaddataanalytics.github.io/INSEADAnalytics/CRISP_DM.pdf”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Quantum , “Data Science project management methodologies” , Aug 20, 2019 , Web. 3 November 2021 , Available from “https://medium.datadriveninvestor.com/data-science-project-management-methodologies-f6913c6b29eb”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;R-bloggers , “CRISP-DM and why you should know about it” 2017 , Web. 4 November 2021 , Available from “https://www.r-bloggers.com/2017/01/crisp-dm-and-why-you-should-know-about-it/”&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;</content><author><name>Ahmed Rashwan, Alev Yildiz, April Peck, and Erin McIntyre</name></author><summary type="html"># Install necessary packages install.packages(&quot;here&quot;) Running Needed Packages # load necessary packages library( tidyverse ) library( here ) library( pander ) Part 1: Data Concordance ``` r Reading data files from specific file paths in my desktop</summary></entry><entry><title type="html">Executive Summary</title><link href="https://r-class.github.io/cpp-528-fall-2021-group-01/ch00-exec_summary/" rel="alternate" type="text/html" title="Executive Summary" /><published>2021-10-26T00:00:00+00:00</published><updated>2021-10-26T00:00:00+00:00</updated><id>https://r-class.github.io/cpp-528-fall-2021-group-01/ch00-exec_summary</id><content type="html" xml:base="https://r-class.github.io/cpp-528-fall-2021-group-01/ch00-exec_summary/">&lt;h3 id=&quot;overview--research-question-program-details&quot;&gt;&lt;strong&gt;Overview / Research Question Program Details&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;The following analysis aims to explain the dynamics of neighborhood changes in US metro areas between 1990 and 2010; then examine whether neighborhoods targeted by the           programs have achieved any more success than they would have without the billion of dollars in federal subsidies. For the project, the team has been hired by the federal         government to provide a rigorous assessment of program impact. We will assess whether two large federal programs designed to revitalize distressed neighborhoods in US cities     have been successful. Low Income Housing Tax Credits (LIHTC) are one of the primary policy instruments used to incentivize the construction of new affordable housing units in   the United States. New Market Tax Credits (NMTC) are mechanisms designed to catalyze economic development in distressed communities by attrating investments from private         developers.&lt;/p&gt;

&lt;h3 id=&quot;data&quot;&gt;&lt;strong&gt;Data&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;The data for analysis was extracted from Census Data and the harmonized Longitudinal Tracts Data Base (LTDB). The LTDB is a great resource for evaluating the changes in the     communities; however, minor redesign was needed to make the rest of the project smoother. This project used variable names that are standardized, combined files, made           accessible meta-data on tracts, and created a harmonization file to improve the usability of the data. Most of the variables used in this project (Harmonized Census Data Part-   01) come from the long-form version of the census (which is only administered to a sample of the population) or variables from the American Community Survey (the annual survey   given to a    subsample of citizens). The second dataset (Harmonized Census Data Part-02) contains only variables that come from the Decennial Census short form, and they are   population measures and not sample estimates. The variables are measured at the Census Tract level using 2010 census tracts. Also, we had to build a machine-readable data       dictionary which allowed us to find the variables we needed quickly.&lt;/p&gt;

&lt;p&gt;This analysis filters out all rural counties since they are not eligible for the programs of interest.&lt;/p&gt;

&lt;h3 id=&quot;methods&quot;&gt;&lt;strong&gt;Methods&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;The change in the Median Home Value (MHV) variable between 1990-2000 instead of 2000 to 2010 period was reproduced in Chapter 3. This chapters provides a descriptive analysis   of the notable difference in home values during the two-time frames. To conceptualize gentrification, new variables were added to our dataset to examine its prevalence in the   data. This chapter also displays a dorling cartogram of San Francsico city to describe the distribution of home values in 1990 and compare values in 2000 to changes in values   from 1990-2000.&lt;/p&gt;

&lt;p&gt;The dependent variable in our model is the median home value. Since we don’t have recent sales data that would tell us exactly how much people are paying for homes, the census   data uses the respondent’s estimate of how much the property (house and lot) would sell or if it were for sale. Chapter 4 shows our baseline model of neighborhood change         before adding the policy variables; omitting cases that have a median home value less than $10,000 in 2000 and cases with growth rates above 200%. It creates a regression       model using control variables, checks for variable skew, and multicollinearity, and adds a metro-level control.&lt;/p&gt;

&lt;h3 id=&quot;results&quot;&gt;&lt;strong&gt;Results&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;The results are shown in detail in Chapter 6. This chapter summarizes the results of the predicted MHV change between 2000 and 2010 across all tracts and the impact of two       tax incentive programs: the Low Income Housing Tax Credit (LIHTC) and the New Market Tax Credit (NMTC).&lt;/p&gt;</content><author><name>Ahmed Rashwan, Alev Yildiz, April Peck, and Erin McIntyre</name></author><summary type="html">Overview / Research Question Program Details The following analysis aims to explain the dynamics of neighborhood changes in US metro areas between 1990 and 2010; then examine whether neighborhoods targeted by the programs have achieved any more success than they would have without the billion of dollars in federal subsidies. For the project, the team has been hired by the federal government to provide a rigorous assessment of program impact. We will assess whether two large federal programs designed to revitalize distressed neighborhoods in US cities have been successful. Low Income Housing Tax Credits (LIHTC) are one of the primary policy instruments used to incentivize the construction of new affordable housing units in the United States. New Market Tax Credits (NMTC) are mechanisms designed to catalyze economic development in distressed communities by attrating investments from private developers. Data The data for analysis was extracted from Census Data and the harmonized Longitudinal Tracts Data Base (LTDB). The LTDB is a great resource for evaluating the changes in the communities; however, minor redesign was needed to make the rest of the project smoother. This project used variable names that are standardized, combined files, made accessible meta-data on tracts, and created a harmonization file to improve the usability of the data. Most of the variables used in this project (Harmonized Census Data Part- 01) come from the long-form version of the census (which is only administered to a sample of the population) or variables from the American Community Survey (the annual survey given to a subsample of citizens). The second dataset (Harmonized Census Data Part-02) contains only variables that come from the Decennial Census short form, and they are population measures and not sample estimates. The variables are measured at the Census Tract level using 2010 census tracts. Also, we had to build a machine-readable data dictionary which allowed us to find the variables we needed quickly. This analysis filters out all rural counties since they are not eligible for the programs of interest. Methods The change in the Median Home Value (MHV) variable between 1990-2000 instead of 2000 to 2010 period was reproduced in Chapter 3. This chapters provides a descriptive analysis of the notable difference in home values during the two-time frames. To conceptualize gentrification, new variables were added to our dataset to examine its prevalence in the data. This chapter also displays a dorling cartogram of San Francsico city to describe the distribution of home values in 1990 and compare values in 2000 to changes in values from 1990-2000. The dependent variable in our model is the median home value. Since we don’t have recent sales data that would tell us exactly how much people are paying for homes, the census data uses the respondent’s estimate of how much the property (house and lot) would sell or if it were for sale. Chapter 4 shows our baseline model of neighborhood change before adding the policy variables; omitting cases that have a median home value less than $10,000 in 2000 and cases with growth rates above 200%. It creates a regression model using control variables, checks for variable skew, and multicollinearity, and adds a metro-level control. Results The results are shown in detail in Chapter 6. This chapter summarizes the results of the predicted MHV change between 2000 and 2010 across all tracts and the impact of two tax incentive programs: the Low Income Housing Tax Credit (LIHTC) and the New Market Tax Credit (NMTC).</summary></entry></feed>