Skip to content

Commit

Permalink
clean news, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorDonegan committed Apr 16, 2024
2 parents d10a12f + 2ec2602 commit 5b18c16
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 69 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Using your R console, you can install **geostan** from CRAN:
install.packages("geostan")
```

You can install the latest version (0.6.0) from the package github repository:
You can install the latest version from the package github repository:

```r
if (!require('devtools')) install.packages('devtools')
Expand Down
46 changes: 23 additions & 23 deletions README.html

Large diffs are not rendered by default.

45 changes: 22 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ Using your R console, you can install **geostan** from CRAN:
install.packages("geostan")
```

You can install the latest version (0.6.0) from the package github
repository:
You can install the latest version from the package github repository:

``` r
if (!require('devtools')) install.packages('devtools')
Expand Down Expand Up @@ -162,8 +161,8 @@ diagnostics for spatial models:
sp_diag(fit, georgia, w = A)
#> Using sp_diag(y, shape, rates = TRUE, ...). To examine data as (unstandardized) counts, use rates = FALSE.
#> 3 NA values found in x will be dropped from data x and matrix w
#> Warning: Removed 3 rows containing missing values or values outside the scale range
#> (`geom_pointrange()`).
#> Warning: Removed 3 rows containing missing values or values outside the scale
#> range (`geom_pointrange()`).
```

<img src="man/figures/README-unnamed-chunk-5-1.png" style="display: block; margin: auto;" />
Expand All @@ -181,20 +180,20 @@ print(fit)
#> Spatial method (outcome): CAR
#> Likelihood function: poisson
#> Link function: log
#> Residual Moran Coefficient: 0.0028665
#> WAIC: 1228.09
#> Residual Moran Coefficient: 0.002382
#> WAIC: 1228.61
#> Observations: 156
#> Data models (ME): none
#> Inference for Stan model: foundation.
#> 4 chains, each with iter=2000; warmup=1000; thin=1;
#> post-warmup draws per chain=1000, total post-warmup draws=4000.
#>
#> mean se_mean sd 2.5% 20% 50% 80% 97.5% n_eff Rhat
#> intercept -4.673 0.002 0.089 -4.842 -4.730 -4.674 -4.621 -4.495 1764 1
#> car_rho 0.923 0.001 0.058 0.777 0.882 0.937 0.972 0.995 2899 1
#> car_scale 0.458 0.001 0.035 0.392 0.428 0.456 0.486 0.531 3989 1
#> mean se_mean sd 2.5% 20% 50% 80% 97.5% n_eff Rhat
#> intercept -4.677 0.003 0.099 -4.855 -4.734 -4.676 -4.615 -4.498 1384 1.002
#> car_rho 0.926 0.001 0.057 0.781 0.886 0.940 0.974 0.996 2921 1.001
#> car_scale 0.457 0.001 0.034 0.395 0.428 0.455 0.485 0.526 3929 1.000
#>
#> Samples were drawn using NUTS(diag_e) at Thu Apr 11 09:12:28 2024.
#> Samples were drawn using NUTS(diag_e) at Tue Apr 16 08:16:01 2024.
#> For each parameter, n_eff is a crude measure of effective sample size,
#> and Rhat is the potential scale reduction factor on split chains (at
#> convergence, Rhat=1).
Expand All @@ -210,19 +209,19 @@ mortality_est <- fitted(fit) * 10e3
county_name <- georgia$NAME
head( cbind(county_name, mortality_est) )
#> county_name mean sd 2.5% 20% 50%
#> fitted[1] Crisp 101.69298 9.508124 84.21700 93.70998 101.31671
#> fitted[2] Candler 137.51901 16.501093 107.21564 123.28521 136.65931
#> fitted[3] Barrow 94.31354 6.325440 82.41186 88.81864 94.08767
#> fitted[4] DeKalb 59.76484 1.635268 56.60461 58.36384 59.74816
#> fitted[5] Columbia 53.30993 3.258305 47.14342 50.62473 53.25321
#> fitted[6] Cobb 54.11545 1.491715 51.19031 52.86885 54.10357
#> fitted[1] Crisp 101.70572 9.498562 83.97063 93.70448 101.24639
#> fitted[2] Candler 137.39050 16.606716 106.86044 123.51343 136.32448
#> fitted[3] Barrow 94.24360 6.351406 82.25888 88.85746 94.05780
#> fitted[4] DeKalb 59.76307 1.544278 56.72223 58.42850 59.78620
#> fitted[5] Columbia 53.31970 3.321858 47.13175 50.44742 53.30227
#> fitted[6] Cobb 54.12199 1.467704 51.33636 52.85897 54.10105
#> 80% 97.5%
#> fitted[1] 109.46104 121.41962
#> fitted[2] 151.09549 172.61239
#> fitted[3] 99.79433 106.73475
#> fitted[4] 61.14575 62.90701
#> fitted[5] 56.00826 59.86768
#> fitted[6] 55.36081 57.12056
#> fitted[1] 109.56469 121.40981
#> fitted[2] 150.82533 173.49393
#> fitted[3] 99.61073 107.25586
#> fitted[4] 61.08625 62.79658
#> fitted[5] 56.12651 59.92468
#> fitted[6] 55.34254 57.02782
```

The mortality estimates are stored in the column named “mean”, and the
Expand Down
44 changes: 22 additions & 22 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/reference/figures/README-unnamed-chunk-5-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-unnamed-chunk-5-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5b18c16

Please sign in to comment.