Skip to content

Commit

Permalink
Version 1.2.1 patch update
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerJPike committed Jan 5, 2022
1 parent 78e60a3 commit 64e2327
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
^CRAN-RELEASE$
^development_test.R$
^\.github$
^CRAN-SUBMISSION$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.html
cran-comments.md
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
.RData
.Ruserdata
to-do.md
CRAN-RELEASE
cran-comments.md
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: sovereign
Title: State-Dependent Empirical Analysis
Version: 1.2.0
Version: 1.2.1
Authors@R:
person(given = "Tyler J.",
family = "Pike",
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Sovereign: State-Dependent Empirical Analysis

## Version 1.2.1
(2021-12-30)
- Bug fixes
- removed as.vector() call in solve_b.R
- change is.na to anyNA in regimes()

## Version 1.2.0
(2021-07-23)

Expand Down
3 changes: 2 additions & 1 deletion R/covid_correction.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ covid_volatility_correction = function(
N = N
)

theta = as.vector(theta$par)
# theta = as.vector(theta$par)
theta = theta$par

# correct data -------------------------------

Expand Down
2 changes: 1 addition & 1 deletion R/regimes.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ regimes = function(
breakpoints = strucchange::breakpoints(x ~ lag(x), data = X)
breakpoints$breakpoints

if(is.na(breakpoints$breakpoints)){
if(anyNA(breakpoints$breakpoints)){
regimes = data.frame(date = X.date, X, regime = 0)
}else{
regimes.val = c(0:length(breakpoints$breakpoints))
Expand Down
3 changes: 1 addition & 2 deletions R/sovle_b.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ solve_B = function(var, report_iv = TRUE){
second_stage_beta = model.second_stage$coefficients[2]
return(second_stage_beta)

}) %>%
as.vector()
})

# scale size of the shock
# see Gertler and Karadi (2015) for background
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
[![CRAN status](https://www.r-pkg.org/badges/version/sovereign)](https://CRAN.R-project.org/package=sovereign)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)
[![codecov](https://codecov.io/gh/tylerJPike/sovereign/branch/main/graph/badge.svg?token=WXLWR6H93B)](https://codecov.io/gh/tylerJPike/sovereign)
[![codecov](https://codecov.io/gh/tylerJPike/sovereign/branch/main/graph/badge.svg?token=WXLWR6H93B)](https://app.codecov.io/gh/tylerJPike/sovereign)
[![R-CMD-check](https://github.com/tylerJPike/sovereign/workflows/R-CMD-check/badge.svg)](https://github.com/tylerJPike/sovereign/actions)
<!-- badges: end -->

Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
[![CRAN status](https://www.r-pkg.org/badges/version/sovereign)](https://CRAN.R-project.org/package=sovereign)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)
[![codecov](https://codecov.io/gh/tylerJPike/sovereign/branch/main/graph/badge.svg?token=WXLWR6H93B)](https://codecov.io/gh/tylerJPike/sovereign)
[![codecov](https://codecov.io/gh/tylerJPike/sovereign/branch/main/graph/badge.svg?token=WXLWR6H93B)](https://app.codecov.io/gh/tylerJPike/sovereign)
[![Build Status](https://travis-ci.org/tylerJPike/sovereign.svg?branch=main)](https://travis-ci.org/tylerJPike/sovereign)
<!-- badges: end -->

Expand Down

0 comments on commit 64e2327

Please sign in to comment.