show_total_effect: Plot combined effect of weather on time

View source: R/jags helpers.R

show_total_effectR Documentation

Plot combined effect of weather on time

Description

Plot combined effect of weather on time

Usage

show_total_effect(
  covariates = macro$cov.weather,
  forecast = FALSE,
  CI_large = TRUE,
  hlines = TRUE,
  draws_max = NULL,
  choose_age = FALSE,
  choose_c = NULL,
  average_c = FALSE,
  average_age = FALSE,
  smooth = FALSE,
  show_covariate = FALSE,
  absoluteR = FALSE,
  return.df = FALSE,
  ...
)

Arguments

forecast

standard FALSE, if TRUE takes weather variables for whole year and averages for each day in year

hlines

adds hline at zero

draws_max

maximum number of draws from posterior for speed, standard 100

choose_age

subset of ages to look at

choose_c

subset of units (countries) to look at

average_c

show all results or only average for all countries

...

further parameters for extract_mcmc

grid

return grid with name on age instead of standard which is one single plot for each name

model

standard FALSE, if TRUE uses linear model, if FALSE uses kernel sieve

wrap

if TRUE uses wrap instead of grid plotting ages in one plot

dim_names

dimension names for effects standard age with m for covariate

Value

ggplot


Schmidtpk/InfSup documentation built on Jan. 20, 2024, 12:33 a.m.