Skip to content

Commit d6c7b86

Browse files
committed
fix variables docstring
1 parent 3ed7499 commit d6c7b86

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

ext/StatsPlotsExt.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ If occasionally binding constraints are present in the model, they are not taken
131131
- $PARAMETERS®
132132
- $ALGORITHM®
133133
- $FILTER®
134-
- $VARIABLES®
134+
- $(VARIABLES®(DEFAULT_VARIABLES_EXCLUDING_OBC))
135135
- `shocks` [Default: `:all`]: shocks for which to plot the estimates. Inputs can be either a `Symbol` (e.g. `:y`, or `:all`), `Tuple{Symbol, Vararg{Symbol}}`, `Matrix{Symbol}`, or `Vector{Symbol}`.
136136
- `presample_periods` [Default: `0`, Type: `Int`]: periods at the beginning of the data which are not plotted. Useful if you want to filter for all periods but focus only on a certain period later in the sample.
137137
- $DATA_IN_LEVELS®
@@ -613,7 +613,7 @@ This function shares most of the signature and functionality of [`plot_model_est
613613
- $PARAMETERS®
614614
- $ALGORITHM®
615615
- $FILTER®
616-
- $VARIABLES®
616+
- $(VARIABLES®(DEFAULT_VARIABLES_EXCLUDING_OBC))
617617
- `shocks` [Default: `:all`]: shocks for which to plot the estimates. Inputs can be either a `Symbol` (e.g. `:y`, or `:all`), `Tuple{Symbol, Vararg{Symbol}}`, `Matrix{Symbol}`, or `Vector{Symbol}`.
618618
- `presample_periods` [Default: `0`, Type: `Int`]: periods at the beginning of the data which are not plotted. Useful if you want to filter for all periods but focus only on a certain period later in the sample.
619619
- $DATA_IN_LEVELS®
@@ -1427,7 +1427,7 @@ If the model contains occasionally binding constraints and `ignore_obc = false`
14271427
# Keyword Arguments
14281428
- $PERIODS®
14291429
- $SHOCKS®
1430-
- $VARIABLES®
1430+
- $(VARIABLES®(DEFAULT_VARIABLES_EXCLUDING_AUX_AND_OBC))
14311431
- $PARAMETERS®
14321432
- $ALGORITHM®
14331433
- $SHOCK_SIZE®
@@ -2072,7 +2072,7 @@ This function shares most of the signature and functionality of [`plot_irf`](@re
20722072
# Keyword Arguments
20732073
- $PERIODS®
20742074
- $SHOCKS®
2075-
- $VARIABLES®
2075+
- $(VARIABLES®(DEFAULT_VARIABLES_EXCLUDING_AUX_AND_OBC))
20762076
- $PARAMETERS®
20772077
- $ALGORITHM®
20782078
- $SHOCK_SIZE®
@@ -3147,7 +3147,7 @@ If occasionally binding constraints are present in the model, they are not taken
31473147
- $MODEL®
31483148
# Keyword Arguments
31493149
- $PERIODS®
3150-
- $VARIABLES®
3150+
- $(VARIABLES®(DEFAULT_VARIABLE_SELECTION))
31513151
- $PARAMETERS®
31523152
- $SHOW_PLOTS®
31533153
- $SAVE_PLOTS®
@@ -3411,7 +3411,7 @@ If the model contains occasionally binding constraints and `ignore_obc = false`
34113411
- $MODEL®
34123412
- `state` [Type: `Union{Symbol,String}`]: state variable to be shown on x-axis.
34133413
# Keyword Arguments
3414-
- $VARIABLES®
3414+
- $(VARIABLES®(DEFAULT_VARIABLE_SELECTION))
34153415
- $ALGORITHM®
34163416
- `σ` [Default: `2`, Type: `Union{Int64,Float64}`]: defines the range of the state variable around the (non) stochastic steady state in standard deviations. E.g. a value of 2 means that the state variable is plotted for values of the (non) stochastic steady state in standard deviations +/- 2 standard deviations.
34173417
- $PARAMETERS®
@@ -4059,7 +4059,7 @@ If the model contains occasionally binding constraints and `ignore_obc = false`
40594059
- $MODEL®
40604060
- `state` [Type: `Union{Symbol,String}`]: state variable to be shown on x-axis.
40614061
# Keyword Arguments
4062-
- $VARIABLES®
4062+
- $(VARIABLES®(DEFAULT_VARIABLE_SELECTION))
40634063
- $ALGORITHM®
40644064
- `σ` [Default: `2`, Type: `Union{Int64,Float64}`]: defines the range of the state variable around the (non) stochastic steady state in standard deviations. E.g. a value of 2 means that the state variable is plotted for values of the (non) stochastic steady state in standard deviations +/- 2 standard deviations.
40654065
- $PARAMETERS®
@@ -4318,7 +4318,7 @@ If occasionally binding constraints are present in the model, they are not taken
43184318
- $INITIAL_STATE®
43194319
- `periods` [Default: `40`, Type: `Int`]: the total number of periods is the sum of the argument provided here and the maximum of periods of the shocks or conditions argument.
43204320
- $PARAMETERS®
4321-
- $VARIABLES®
4321+
- $(VARIABLES®(DEFAULT_VARIABLES_EXCLUDING_OBC))
43224322
- `conditions_in_levels` [Default: `true`, Type: `Bool`]: indicator whether the conditions are provided in levels. If `true` the input to the conditions argument will have the non-stochastic steady state subtracted.
43234323
- $ALGORITHM®
43244324
- `label` [Default: `1`, Type: `Union{Real, String, Symbol}`]: label to attribute to this function call in the plots.
@@ -4762,7 +4762,7 @@ This function shares most of the signature and functionality of [`plot_condition
47624762
- $INITIAL_STATE®
47634763
- `periods` [Default: `40`, Type: `Int`]: the total number of periods is the sum of the argument provided here and the maximum of periods of the shocks or conditions argument.
47644764
- $PARAMETERS®
4765-
- $VARIABLES®
4765+
- $(VARIABLES®(DEFAULT_VARIABLES_EXCLUDING_OBC))
47664766
- `conditions_in_levels` [Default: `true`, Type: `Bool`]: indicator whether the conditions are provided in levels. If `true` the input to the conditions argument will have the non-stochastic steady state subtracted.
47674767
- $ALGORITHM®
47684768
- $LABEL®

src/common_docstrings.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
const MODEL® = "`𝓂`: object created by [`@model`](@ref) and [`@parameters`](@ref)."
33
const PARAMETER_VALUES® = "`parameters` [Type: `Vector`]: Parameter values in alphabetical order (sorted by parameter name)."
44
const PARAMETERS® = "`parameters` [Default: `nothing`]: If `nothing` is provided, the solution is calculated for the parameters defined previously. Acceptable inputs are a `Vector` of parameter values, a `Vector` or `Tuple` of `Pair`s of the parameter `Symbol` or `String` and value. If the new parameter values differ from the previously defined the solution will be recalculated."
5-
const VARIABLES® = "`variables` [Default: `$(DEFAULT_VARIABLES_EXCLUDING_OBC)`]: variables for which to show the results. Inputs can be a variable name passed on as either a `Symbol` or `String` (e.g. `:y` or \"y\"), or `Tuple`, `Matrix` or `Vector` of `String` or `Symbol`. Any variables not part of the model will trigger a warning. `$(DEFAULT_VARIABLES_EXCLUDING_AUX_AND_OBC)` contains all shocks less those related to auxiliary variables and related to occasionally binding constraints (obc). `$(DEFAULT_VARIABLES_EXCLUDING_OBC)` contains all shocks less those related to auxiliary variables. `$(DEFAULT_VARIABLE_SELECTION)` will contain all variables."
5+
# const VARIABLES® = "`variables` [Default: `$(DEFAULT_VARIABLES_EXCLUDING_OBC)`]: variables for which to show the results. Inputs can be a variable name passed on as either a `Symbol` or `String` (e.g. `:y` or \"y\"), or `Tuple`, `Matrix` or `Vector` of `String` or `Symbol`. Any variables not part of the model will trigger a warning. `$(DEFAULT_VARIABLES_EXCLUDING_AUX_AND_OBC)` contains all shocks less those related to auxiliary variables and related to occasionally binding constraints (obc). `$(DEFAULT_VARIABLES_EXCLUDING_OBC)` contains all shocks less those related to auxiliary variables. `$(DEFAULT_VARIABLE_SELECTION)` will contain all variables."
6+
VARIABLES® = x -> "`variables` [Default: `$x`]: variables for which to show the results. Inputs can be a variable name passed on as either a `Symbol` or `String` (e.g. `:y` or \"y\"), or `Tuple`, `Matrix` or `Vector` of `String` or `Symbol`. Any variables not part of the model will trigger a warning. `$(DEFAULT_VARIABLES_EXCLUDING_AUX_AND_OBC)` contains all shocks less those related to auxiliary variables and related to occasionally binding constraints (obc). `$(DEFAULT_VARIABLES_EXCLUDING_OBC)` contains all shocks less those related to auxiliary variables. `$(DEFAULT_VARIABLE_SELECTION)` will contain all variables."
67
const SHOCKS® = "`shocks` [Default: `$(DEFAULT_SHOCKS_EXCLUDING_OBC)`]: shocks for which to calculate the IRFs. Inputs can be a shock name passed on as either a `Symbol` or `String` (e.g. `:y`, or \"y\"), or `Tuple`, `Matrix` or `Vector` of `String` or `Symbol`. `:simulate` triggers random draws of all shocks (excluding occasionally binding constraints (obc) related shocks). `$(DEFAULT_SHOCKS_EXCLUDING_OBC)` will contain all shocks but not the obc related ones. `$(DEFAULT_SHOCK_SELECTION)` will contain also the obc related shocks. A series of shocks can be passed on using either a `Matrix{Float64}`, or a `KeyedArray{Float64}` as input with shocks (`Symbol` or `String`) in rows and periods in columns. The `KeyedArray` type is provided by the `AxisKeys` package. The period of the simulation will correspond to the length of the input in the period dimension + the number of periods defined in `periods`. If the series of shocks is input as a `KeyedArray{Float64}` make sure to name the rows with valid shock names of type `Symbol`. Any shocks not part of the model will trigger a warning. `:none` in combination with an `initial_state` can be used for deterministic simulations."
78
const DERIVATIVES® = "`derivatives` [Default: `$(DEFAULT_DERIVATIVES_FLAG)`, Type: `Bool`]: calculate derivatives with respect to the parameters."
89
const PERIODS® = "`periods` [Default: `$(DEFAULT_PERIODS)`, Type: `Int`]: number of periods for which to calculate the output. In case a matrix of shocks was provided, periods defines how many periods after the series of shocks the output continues."

src/get_functions.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ If occasionally binding constraints are present in the model, they are not taken
645645
- $INITIAL_STATE®
646646
- `periods` [Default: `40`, Type: `Int`]: the total number of periods is the sum of the argument provided here and the maximum of periods of the shocks or conditions argument.
647647
- $PARAMETERS®
648-
- $VARIABLES®
648+
- $(VARIABLES®(DEFAULT_VARIABLES_EXCLUDING_OBC))
649649
- `conditions_in_levels` [Default: `true`, Type: `Bool`]: indicator whether the conditions are provided in levels. If `true` the input to the conditions argument will have the non-stochastic steady state subtracted.
650650
- `levels` [Default: `false`, Type: `Bool`]: $LEVELS®
651651
- $ALGORITHM®
@@ -1016,7 +1016,7 @@ If occasionally binding constraints are present in the model, they are not taken
10161016
- $PARAMETER_VALUES®
10171017
# Keyword Arguments
10181018
- $PERIODS®
1019-
- $VARIABLES®
1019+
- $(VARIABLES®(DEFAULT_VARIABLES_EXCLUDING_OBC))
10201020
- $SHOCKS®
10211021
- $NEGATIVE_SHOCK®
10221022
- $INITIAL_STATE®1
@@ -1151,7 +1151,7 @@ If the model contains occasionally binding constraints and `ignore_obc = false`
11511151
- $PERIODS®
11521152
- $ALGORITHM®
11531153
- $PARAMETERS®
1154-
- $VARIABLES®
1154+
- $(VARIABLES®(DEFAULT_VARIABLES_EXCLUDING_OBC))
11551155
- $SHOCKS®
11561156
- $NEGATIVE_SHOCK®
11571157
- $GENERALISED_IRF®
@@ -2596,7 +2596,7 @@ If occasionally binding constraints are present in the model, they are not taken
25962596
- `standard_deviation` [Default: `true`, Type: `Bool`]: switch to return standard deviation of endogenous variables
25972597
- `variance` [Default: `false`, Type: `Bool`]: switch to return variance of endogenous variables
25982598
- `covariance` [Default: `false`, Type: `Bool`]: switch to return covariance matrix of endogenous variables
2599-
- $VARIABLES®
2599+
- $(VARIABLES®(DEFAULT_VARIABLES_EXCLUDING_OBC))
26002600
- $DERIVATIVES®
26012601
- $PARAMETER_DERIVATIVES®
26022602
- $ALGORITHM®

0 commit comments

Comments
 (0)