Skip to content

Commit 6895d6e

Browse files
raphaelsaavedraguilhermebodin
authored andcommitted
improve docs and readme (#35)
* improve docs and readme * change theta to f * improve text
1 parent 2a11703 commit 6895d6e

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
Manifest.toml
2-
docs/build/
2+
docs/build/
3+
.DS_Store
4+
docs/.DS_Store

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
ScoreDrivenModels.jl is a Julia package for modeling, forecasting and simulating time series with score-driven models, also known as dynamic conditional score models (DCS) or generalized autoregressive score models (GAS). Implementations are based on the paper [Generalized Autoregressive Models with Applications](http://dx.doi.org/10.1002/jae.1279) by D. Creal, S. J. Koopman and A. Lucas.
1414

1515
# Features
16-
* SARIMA structure
16+
* Autoregressive structure
1717
* Maximum likelihood estimation
1818
* Monte Carlo simulation
19-
* Several available distributions:
19+
* General link/unlink interface
20+
* Available distributions:
2021
* Normal
2122
* Lognormal
2223
* Poisson
@@ -25,4 +26,5 @@ ScoreDrivenModels.jl is a Julia package for modeling, forecasting and simulating
2526

2627
# Roadmap
2728
* Weibull distribution
28-
* Unobserved components structure
29+
* Student's t distribution
30+
* Dynamic components structure

docs/src/manual.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Links
44

5+
Links are reparametrizations utilized in the estimation. For example, if we want to estimate a parameter ``f`` which is by definition strictly positive, then an obvious way to estimate ``f`` via numerical optimization is to model ``\tilde{f} = \ln{f}``. We refer to this procedure as **linking**. After obtaining the optimal value of ``\tilde{f}``, we can then **unlink** it to obtain ``f`` by computing ``f = e^{\tilde{f}}``.
6+
57
### Types of links
68

79
The abstract type `Link` subsumes any type of link that can be expressed.

src/ScoreDrivenModels.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ include("distributions/common_interface.jl")
2525
include("distributions/normal.jl")
2626
include("distributions/poisson.jl")
2727
include("distributions/beta.jl")
28-
include("distributions/log_normal.jl")
28+
include("distributions/lognormal.jl")
2929
include("distributions/gamma.jl")
3030
include("distributions/weibull.jl")
3131

File renamed without changes.

src/link_functions.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function link end
1010
"""
1111
unlink(args...)
1212
13-
The unlink function is the inverse map of [`link`](@ref link). It brings ``\\tilde f`` in ``\\mathbb{R}`` to the subspace ``\\mathcal{F} \\subset \\mathbb{R}``.
13+
The unlink function is the inverse map of [`link`](@ref link). It brings ``\\tilde{f}`` in ``\\mathbb{R}`` to the subspace ``\\mathcal{F} \\subset \\mathbb{R}``.
1414
"""
1515
function unlink end
1616

@@ -24,7 +24,7 @@ function jacobian_link end
2424
"""
2525
IdentityLink <: Link
2626
27-
Define the map ``\\ \\tilde f = f`` where ``\\ \\tilde f \\in \\mathbb{R}`` and ``\\ \\tilde f \\in \\mathbb{R}``
27+
Define the map ``\\tilde{f} = f`` where ``\\tilde{f} \\in \\mathbb{R}`` and ``\\tilde{f} \\in \\mathbb{R}``
2828
"""
2929
struct IdentityLink <: Link end
3030

@@ -35,7 +35,7 @@ jacobian_link(::Type{IdentityLink}, param_tilde::T) where T = one(T)
3535
"""
3636
LogLink <: Link
3737
38-
Define the map ``\\ \\tilde f = \\ln(f - a)`` where ``\\ f \\in [a, \\infty), a \\in \\mathbb{R}`` and ``\\ \\tilde f \\in \\mathbb{R}``
38+
Define the map ``\\tilde{f} = \\ln(f - a)`` where ``f \\in [a, \\infty), a \\in \\mathbb{R}`` and ``\\tilde{f} \\in \\mathbb{R}``
3939
"""
4040
struct LogLink <: Link end
4141

0 commit comments

Comments
 (0)