Skip to content

Commit 3e60312

Browse files
committed
surv-cens >> ts anal exs
1 parent 7ff79fd commit 3e60312

File tree

10 files changed

+2015
-1756
lines changed

10 files changed

+2015
-1756
lines changed
Loading
Loading

_book/qmd/geospatial-point-patterns.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4131,7 +4131,7 @@ <h3 class="unnumbered anchored" data-anchor-id="inhomogeneity">Inhomogeneity</h3
41314131
<li>Otherwise, <span class="math inline">\(\lambda(u)\)</span> will be estimated from the data by a leave-one-out kernel smoother. Manually this would be <code>density(swp, sigma = bw.diggle, at="points")</code>.</li>
41324132
</ul></li>
41334133
<li><p>On p.&nbsp;689 in the <span style="color: #990000">{spatstat}</span> book, a permutation test procedure is performed to test whether a point pattern is correlation-stationary (inhomogeneous) or locally scaled. Testing for whether the pattern is homogeneous or locally scaled and inhomogeneous, etc. could also have been done as well I think.</p></li>
4134-
<li><p><span class="ribbon-highlight">Example</span>: <span style="color: #990000">{spatstat}</span> book</p>
4134+
<li><p><span class="ribbon-highlight">Example</span>: <span style="color: #990000">{spatstat}</span> book, pp.&nbsp;244-246</p>
41354135
<div class="tabset-margin-container"></div><div class="panel-tabset">
41364136
<ul class="nav nav-tabs" role="tablist"><li class="nav-item" role="presentation"><a class="nav-link active" id="tabset-5-1-tab" data-bs-toggle="tab" data-bs-target="#tabset-5-1" role="tab" aria-controls="tabset-5-1" aria-selected="true">Data</a></li><li class="nav-item" role="presentation"><a class="nav-link" id="tabset-5-2-tab" data-bs-toggle="tab" data-bs-target="#tabset-5-2" role="tab" aria-controls="tabset-5-2" aria-selected="false">Homogeneous K and L</a></li><li class="nav-item" role="presentation"><a class="nav-link" id="tabset-5-3-tab" data-bs-toggle="tab" data-bs-target="#tabset-5-3" role="tab" aria-controls="tabset-5-3" aria-selected="false">Inhomogeneous K and L</a></li><li class="nav-item" role="presentation"><a class="nav-link" id="tabset-5-4-tab" data-bs-toggle="tab" data-bs-target="#tabset-5-4" role="tab" aria-controls="tabset-5-4" aria-selected="false">Global Envelope</a></li></ul>
41374137
<div class="tab-content">

_book/qmd/surveys-census-data.html

Lines changed: 662 additions & 566 deletions
Large diffs are not rendered by default.

_book/search.json

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.
Loading
Loading

qmd/geospatial-point-patterns.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ fig-align: left
17321732
17331733
- On p. 689 in the [{spatstat}]{style="color: #990000"} book, a permutation test procedure is performed to test whether a point pattern is correlation-stationary (inhomogeneous) or locally scaled. Testing for whether the pattern is homogeneous or locally scaled and inhomogeneous, etc. could also have been done as well I think.
17341734
1735-
- [Example]{.ribbon-highlight}: [{spatstat}]{style="color: #990000"} book
1735+
- [Example]{.ribbon-highlight}: [{spatstat}]{style="color: #990000"} book, pp. 244-246
17361736
17371737
:::::: panel-tabset
17381738
## Data

qmd/surveys-census-data.qmd

Lines changed: 1319 additions & 1168 deletions
Large diffs are not rendered by default.

scrapsheet.qmd

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ title: "Scrapsheet"
557557
``` r
558558
library(tidycensus)
559559
library(tidyverse)
560+
library(mapview)
560561
561562
top100counties <- get_acs(
562563
geography = "county",
@@ -599,15 +600,14 @@ title: "Scrapsheet"
599600
- Make 100 Maps
600601

601602
``` r
602-
library(mapview)
603-
604-
wfh_maps <- map(wfh_tract_list, function(county) {
605-
mapview(
606-
county,
607-
zcol = "estimate",
608-
layer.name = "% working from home"
609-
)
610-
})
603+
wfh_maps <-
604+
map(wfh_tract_list, function(county) {
605+
mapview(
606+
county,
607+
zcol = "estimate",
608+
layer.name = "% working from home"
609+
)
610+
})
611611
```
612612

613613
- Small Area Time Series Analysis (2:40)
@@ -640,23 +640,35 @@ title: "Scrapsheet"
640640

641641
- get more details
642642

643-
- Aerial Interpolation (see book for more details)
643+
- Aerial Interpolation (see [book ](https://walker-data.com/census-r/spatial-analysis-with-us-census-data.html?q=small#small-area-time-series-analysis)for more details)
644644

645645
- Check for incongruent boundaries
646646

647647
``` r
648648
library(sf)
649649
650-
wfh_17 <- get_acs(geography = "tract", variables = "B08006_017", year = 2017,
651-
state = "UT", county = "Salt Lake", geometry = TRUE) %>%
650+
wfh_17 <-
651+
get_acs(geography = "tract",
652+
variables = "B08006_017",
653+
year = 2017,
654+
state = "UT",
655+
county = "Salt Lake",
656+
geometry = TRUE) |>
652657
st_transform(6620)
653658
654-
wfh_22 <- get_acs(geography = "tract", variables = "B08006_017", year = 2022,
655-
state = "UT", county = "Salt Lake", geometry = TRUE) %>%
659+
wfh_22 <-
660+
get_acs(geography = "tract",
661+
variables = "B08006_017",
662+
year = 2022,
663+
state = "UT",
664+
county = "Salt Lake",
665+
geometry = TRUE) |>
656666
st_transform(6620)
657667
```
658668

659-
- get details on crs projection
669+
- Process is quicker on a projected coordinated system
670+
671+
- [EPSG:6620](https://epsg.io/6620) is NAD83(2011) / Utah North
660672

661673
- get details on how he found incongruent boundaries
662674

@@ -665,8 +677,8 @@ title: "Scrapsheet"
665677
``` r
666678
library(sf)
667679
668-
wfh_22_to_17 <- wfh_22 %>%
669-
select(estimate) %>%
680+
wfh_22_to_17 <- wfh_22 |>
681+
select(estimate) |>
670682
st_interpolate_aw(to = wfh_17, extensive = TRUE)
671683
```
672684

0 commit comments

Comments
 (0)