Skip to content

Commit 64e2327

Browse files
committed
Version 1.2.1 patch update
1 parent 78e60a3 commit 64e2327

10 files changed

Lines changed: 16 additions & 8 deletions

File tree

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
^CRAN-RELEASE$
1212
^development_test.R$
1313
^\.github$
14+
^CRAN-SUBMISSION$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.html
2+
cran-comments.md

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
.RData
44
.Ruserdata
55
to-do.md
6-
CRAN-RELEASE
6+
cran-comments.md

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: sovereign
22
Title: State-Dependent Empirical Analysis
3-
Version: 1.2.0
3+
Version: 1.2.1
44
Authors@R:
55
person(given = "Tyler J.",
66
family = "Pike",

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Sovereign: State-Dependent Empirical Analysis
22

3+
## Version 1.2.1
4+
(2021-12-30)
5+
- Bug fixes
6+
- removed as.vector() call in solve_b.R
7+
- change is.na to anyNA in regimes()
8+
39
## Version 1.2.0
410
(2021-07-23)
511

R/covid_correction.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ covid_volatility_correction = function(
147147
N = N
148148
)
149149

150-
theta = as.vector(theta$par)
150+
# theta = as.vector(theta$par)
151+
theta = theta$par
151152

152153
# correct data -------------------------------
153154

R/regimes.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ regimes = function(
9090
breakpoints = strucchange::breakpoints(x ~ lag(x), data = X)
9191
breakpoints$breakpoints
9292

93-
if(is.na(breakpoints$breakpoints)){
93+
if(anyNA(breakpoints$breakpoints)){
9494
regimes = data.frame(date = X.date, X, regime = 0)
9595
}else{
9696
regimes.val = c(0:length(breakpoints$breakpoints))

R/sovle_b.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ solve_B = function(var, report_iv = TRUE){
8585
second_stage_beta = model.second_stage$coefficients[2]
8686
return(second_stage_beta)
8787

88-
}) %>%
89-
as.vector()
88+
})
9089

9190
# scale size of the shock
9291
# see Gertler and Karadi (2015) for background

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
55
[![CRAN status](https://www.r-pkg.org/badges/version/sovereign)](https://CRAN.R-project.org/package=sovereign)
66
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)
7-
[![codecov](https://codecov.io/gh/tylerJPike/sovereign/branch/main/graph/badge.svg?token=WXLWR6H93B)](https://codecov.io/gh/tylerJPike/sovereign)
7+
[![codecov](https://codecov.io/gh/tylerJPike/sovereign/branch/main/graph/badge.svg?token=WXLWR6H93B)](https://app.codecov.io/gh/tylerJPike/sovereign)
88
[![R-CMD-check](https://github.com/tylerJPike/sovereign/workflows/R-CMD-check/badge.svg)](https://github.com/tylerJPike/sovereign/actions)
99
<!-- badges: end -->
1010

index.md

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

0 commit comments

Comments
 (0)