Skip to content

Commit

Permalink
Merge pull request #3 from mattheaphy/pre-release
Browse files Browse the repository at this point in the history
First CRAN release
  • Loading branch information
mattheaphy authored Jan 23, 2024
2 parents b1fe796 + 2abc65a commit 97ec2d8
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ rsconnect/
# other
next_actions.md
docs
CRAN-SUBMISSION
cran-comments.md
17 changes: 8 additions & 9 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
Package: offsetreg
Title: An Extension of Tidymodels Supporting Offset Terms
Title: An Extension of 'Tidymodels' Supporting Offset Terms
Version: 1.0.0
Authors@R:
person("Matt", "Heaphy", email = "[email protected]", role = c("aut", "cre", "cph"))
Maintainer: Matt Heaphy <[email protected]>
Description: This package provides functions that extend the 'tidymodels'
ecosystem <https://www.tidymodels.org/> to enable usage of predictive models
with offset terms. Models with offsets are most useful when working with
count data or when fitting an adjustment model on top of an existing model
with a prior expectation. The former situation is common in insurance where
data is often weighted by exposures. The latter is common in life insurance
where industry mortality tables are often used as a starting point for
setting assumptions.
Description: Extend the 'tidymodels' ecosystem <https://www.tidymodels.org/> to
enable the creation of predictive models with offset terms. Models with
offsets are most useful when working with count data or when fitting an
adjustment model on top of an existing model with a prior expectation.
The former situation is common in insurance where data is often weighted by
exposures. The latter is common in life insurance where industry mortality
tables are often used as a starting point for setting assumptions.
License: MIT + file LICENSE
URL: https://github.com/mattheaphy/offsetreg/, https://mattheaphy.github.io/offsetreg/
BugReports: https://github.com/mattheaphy/offsetreg/issues
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# offsetreg 1.0.0

- Initial CRAN submission
- Initial CRAN release
- offsetreg includes one model specification, `poisson_reg_offset()` with support for two engines: `glm_offset()` and `glmnet_offset()`, which are wrappers around `stats::glm()` and `glmnet::glmnet()`, respectively.
6 changes: 6 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ Model engines

## Installation

The offsetreg package can be installed from CRAN with:

``` r
install.packages("offsetreg")
```

You can install the development version of offsetreg from [GitHub](https://github.com/) with:

``` r
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ Model engines

## Installation

The offsetreg package can be installed from CRAN with:

``` r
install.packages("offsetreg")
```

You can install the development version of offsetreg from
[GitHub](https://github.com/) with:

Expand Down
4 changes: 1 addition & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## R CMD check results

0 errors | 0 warnings | 1 note

- This is a new release.
0 errors | 0 warnings | 0 notes
4 changes: 2 additions & 2 deletions man/offsetreg-package.Rd

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

0 comments on commit 97ec2d8

Please sign in to comment.