Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
e36516f7
Commit
e36516f7
authored
Nov 14, 2013
by
Stéphane Adjemian
Browse files
Same as commit #
92adc85d
for ygrowth and ydiff methods.
parent
61cf9899
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/@dseries/ydiff.m
View file @
e36516f7
...
...
@@ -46,28 +46,28 @@ switch ts.freq
us
.
data
(
2
:
end
,
:
)
=
ts
.
data
(
2
:
end
,
:
)
-
ts
.
data
(
1
:
end
-
1
,
:
);
us
.
data
(
1
,
:
)
=
NaN
;
for
i
=
1
:
ts
.
vobs
us
.
name
(
i
)
=
{[
'
YDIFF_
'
us
.
name
{
i
}]
}
;
us
.
name
(
i
)
=
{[
'
ydiff
(
'
us
.
name
{
i
}
')'
]
}
;
us
.
tex
(
i
)
=
{[
'\
Delta
'
us
.
tex
{
i
}]
}
;
end
case
4
us
.
data
(
5
:
end
,
:
)
=
ts
.
data
(
5
:
end
,
:
)
-
ts
.
data
(
1
:
end
-
4
,
:
);
us
.
data
(
1
:
4
,
:
)
=
NaN
;
for
i
=
1
:
ts
.
vobs
us
.
name
(
i
)
=
{[
'
YDIFF_
'
us
.
name
{
i
}]
}
;
us
.
name
(
i
)
=
{[
'
ydiff
(
'
us
.
name
{
i
}
')'
]
}
;
us
.
tex
(
i
)
=
{[
'\
Delta_4
'
us
.
tex
{
i
}]
}
;
end
case
12
us
.
data
(
13
:
end
,
:
)
=
ts
.
data
(
13
:
end
,
:
)
-
ts
.
data
(
1
:
end
-
12
,
:
);
us
.
data
(
1
:
12
,
:
)
=
NaN
;
for
i
=
1
:
ts
.
vobs
us
.
name
(
i
)
=
{[
'
YDIFF_
'
us
.
name
{
i
}]
}
;
us
.
name
(
i
)
=
{[
'
ydiff
(
'
us
.
name
{
i
}
')'
]
}
;
us
.
tex
(
i
)
=
{[
'\
Delta_
{
12
}
'
us
.
tex
{
i
}]
}
;
end
case
52
us
.
data
(
53
:
end
,
:
)
=
ts
.
data
(
53
:
end
,
:
)
-
ts
.
data
(
1
:
end
-
52
,
:
);
us
.
data
(
1
:
52
,
:
)
=
NaN
;
for
i
=
1
:
ts
.
vobs
us
.
name
(
i
)
=
{[
'
YDIFF_
'
us
.
name
{
i
}]
}
;
us
.
name
(
i
)
=
{[
'
ydiff
(
'
us
.
name
{
i
}
')'
]
}
;
us
.
tex
(
i
)
=
{[
'\
Delta_
{
52
}
'
us
.
tex
{
i
}]
}
;
end
otherwise
...
...
matlab/@dseries/ygrowth.m
View file @
e36516f7
...
...
@@ -46,28 +46,28 @@ switch ts.freq
us
.
data
(
2
:
end
,
:
)
=
ts
.
data
(
2
:
end
,
:
).
/
ts
.
data
(
1
:
end
-
1
,
:
)
-
1
;
us
.
data
(
1
,
:
)
=
NaN
;
for
i
=
1
:
ts
.
vobs
us
.
name
(
i
)
=
{[
'
YGROWTH_
'
us
.
name
{
i
}]
}
;
us
.
name
(
i
)
=
{[
'
ygrowth
(
'
us
.
name
{
i
}
')'
]
}
;
us
.
tex
(
i
)
=
{[
'\
delta
'
us
.
tex
{
i
}]
}
;
end
case
4
us
.
data
(
5
:
end
,
:
)
=
ts
.
data
(
5
:
end
,
:
).
/
ts
.
data
(
1
:
end
-
4
,
:
)
-
1
;
us
.
data
(
1
:
4
,
:
)
=
NaN
;
for
i
=
1
:
ts
.
vobs
us
.
name
(
i
)
=
{[
'
YDIFF_
'
us
.
name
{
i
}]
}
;
us
.
name
(
i
)
=
{[
'
ygrowth
(
'
us
.
name
{
i
}
')'
]
}
;
us
.
tex
(
i
)
=
{[
'\
delta_4
'
us
.
tex
{
i
}]
}
;
end
case
12
us
.
data
(
13
:
end
,
:
)
=
ts
.
data
(
13
:
end
,
:
).
/
ts
.
data
(
1
:
end
-
12
,
:
)
-
1
;
us
.
data
(
1
:
12
,
:
)
=
NaN
;
for
i
=
1
:
ts
.
vobs
us
.
name
(
i
)
=
{[
'
YDIFF_
'
us
.
name
{
i
}]
}
;
us
.
name
(
i
)
=
{[
'
ygrowth
(
'
us
.
name
{
i
}
')'
]
}
;
us
.
tex
(
i
)
=
{[
'\
delta_
{
12
}
'
us
.
tex
{
i
}]
}
;
end
case
52
us
.
data
(
53
:
end
,
:
)
=
ts
.
data
(
53
:
end
,
:
).
/
ts
.
data
(
1
:
end
-
52
,
:
)
-
1
;
us
.
data
(
1
:
52
,
:
)
=
NaN
;
for
i
=
1
:
ts
.
vobs
us
.
name
(
i
)
=
{[
'
YDIFF_
'
us
.
name
{
i
}]
}
;
us
.
name
(
i
)
=
{[
'
ygrowth
(
'
us
.
name
{
i
}
')'
]
}
;
us
.
tex
(
i
)
=
{[
'\
delta_
{
52
}
'
us
.
tex
{
i
}]
}
;
end
otherwise
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment