mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-17 08:40:56 +00:00
Clean up R check warnings
This commit is contained in:
parent
49a89d2a4e
commit
b5e67e59c3
2 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
#' on \code{y} of a unit increase in the regressor. For multiplicative regressors,
|
#' on \code{y} of a unit increase in the regressor. For multiplicative regressors,
|
||||||
#' the incremental impact is equal to \code{trend(t)} multiplied by the coefficient.
|
#' the incremental impact is equal to \code{trend(t)} multiplied by the coefficient.
|
||||||
#'
|
#'
|
||||||
#' \textbf{Coefficients are measured on the original scale of the training data.}
|
#' Coefficients are measured on the original scale of the training data.
|
||||||
#'
|
#'
|
||||||
#' @param m Prophet model object, after fitting.
|
#' @param m Prophet model object, after fitting.
|
||||||
#'
|
#'
|
||||||
|
|
@ -50,7 +50,7 @@ regressor_coefficients <- function(m){
|
||||||
coefs <- betas * y_scale_indicator / regr_stds
|
coefs <- betas * y_scale_indicator / regr_stds
|
||||||
|
|
||||||
percentiles = c((1 - m$interval.width) / 2, 1 - (1 - m$interval.width) / 2)
|
percentiles = c((1 - m$interval.width) / 2, 1 - (1 - m$interval.width) / 2)
|
||||||
bounds <- apply(betas, 2, quantile, probs = percentiles)
|
bounds <- apply(betas, 2, stats::quantile, probs = percentiles)
|
||||||
|
|
||||||
df <- data.frame(
|
df <- data.frame(
|
||||||
regressor = regr_names,
|
regressor = regr_names,
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ regressor_coefficients(m)
|
||||||
Dataframe with one row per regressor.
|
Dataframe with one row per regressor.
|
||||||
}
|
}
|
||||||
\description{
|
\description{
|
||||||
\textbf{Coefficients are measured on the original scale of the training data.}
|
Coefficients are measured on the original scale of the training data.
|
||||||
}
|
}
|
||||||
\details{
|
\details{
|
||||||
Output dataframe columns:
|
Output dataframe columns:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue