Skip to content

Commit

Permalink
fix CRAN spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeLydeamore committed Jul 26, 2024
1 parent 9f9b854 commit 29e00f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ representation of community infection in many regions.

## Installation

You can install the stable version from cran with:
You can install the stable version from CRAN with:

``` r
install.packages("conmat")
Expand Down Expand Up @@ -134,7 +134,7 @@ contact_model <- fit_single_contact_model(
population = polymod_survey_data
)
#> Warning in bgam.fit(G, mf, chunk.size, gp, scale, gamma, method = method, :
#> algorithm did not converge
#> fitted rates numerically 0 occurred
```

This fits a generalised additive model (GAM), predicting the contact
Expand All @@ -153,9 +153,9 @@ contact_model
#> school_probability + work_probability + offset(log_contactable_population)
#>
#> Estimated degrees of freedom:
#> 1.00 4.20 3.60 8.58 7.74 4.80 total = 32.92
#> 1.01 4.33 4.24 7.03 7.58 4.75 total = 31.94
#>
#> fREML score: 24130.3 rank: 55/57
#> fREML score: 24021.47 rank: 55/57
```

We can use this contact model to then predict the contact rate in a new
Expand Down Expand Up @@ -209,16 +209,16 @@ synthetic_contact_fairfield
#> # A tibble: 324 × 3
#> age_group_from age_group_to contacts
#> <fct> <fct> <dbl>
#> 1 [0,5) [0,5) 0.00124
#> 2 [0,5) [5,10) 0.00262
#> 3 [0,5) [10,15) 0.00354
#> 4 [0,5) [15,20) 0.00604
#> 5 [0,5) [20,25) 0.0143
#> 6 [0,5) [25,30) 0.0279
#> 7 [0,5) [30,35) 0.0366
#> 1 [0,5) [0,5) 0.00286
#> 2 [0,5) [5,10) 0.00309
#> 3 [0,5) [10,15) 0.00330
#> 4 [0,5) [15,20) 0.00562
#> 5 [0,5) [20,25) 0.0135
#> 6 [0,5) [25,30) 0.0266
#> 7 [0,5) [30,35) 0.0358
#> 8 [0,5) [35,40) 0.0370
#> 9 [0,5) [40,45) 0.0345
#> 10 [0,5) [45,50) 0.0313
#> 9 [0,5) [40,45) 0.0348
#> 10 [0,5) [45,50) 0.0318
#> # ℹ 314 more rows
```

Expand Down
Binary file modified man/figures/README-plot-matrix-differents-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 29e00f8

Please sign in to comment.