mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-06-17 01:44:52 +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,
|
||||
#' 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.
|
||||
#'
|
||||
|
|
@ -50,7 +50,7 @@ regressor_coefficients <- function(m){
|
|||
coefs <- betas * y_scale_indicator / regr_stds
|
||||
|
||||
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(
|
||||
regressor = regr_names,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ regressor_coefficients(m)
|
|||
Dataframe with one row per regressor.
|
||||
}
|
||||
\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{
|
||||
Output dataframe columns:
|
||||
|
|
|
|||
Loading…
Reference in a new issue