On Saturday 16 June 2007 17:32:17 Allin Cottrell wrote:
>
> I may be missing something, but I think the answer is that you'll
> have to pass a list to achieve what you want here.
I want a unique series as input and a list (with, for example, three series)
as output, and I want the output series b
On Thu, 14 Jun 2007, Ignacio Diaz-Emparanza wrote:
> [In Sven's example] "endogenous" is a list, so this implies that
> the user should define it first:
>
> list endogenous = income
> list components = decomp(endogenous)
>
> and I think that, given that my function does not need more than
> on
Ignacio Diaz-Emparanza schrieb:
> On Thursday 14 June 2007 17:37:32 Sven Schreiber wrote:
>>> ...
>>> For example obtaining names "income_trend" ... when applied to "income"
>>> and names "consume_trend"... when applied to consume.
>> See py4gretl_vecdecomp inside the function package with the same
On Thursday 14 June 2007 17:37:32 Sven Schreiber wrote:
>>...
> > For example obtaining names "income_trend" ... when applied to "income"
> > and names "consume_trend"... when applied to consume.
>
> See py4gretl_vecdecomp inside the function package with the same name on
> the package server for a
Ignacio Diaz-Emparanza schrieb:
>
> The question is:
> Is there a way to pass the name of the variable to the function, so that the
> function can generate new series which change the names depending on what
> series are applied to?
>
> For example obtaining names "income_trend" ... when app
Suppose I want a function that may be applied to one series (for
example, "income") so that the function produces several output series
(for example "trend", "seasonal", etc).
The function may be:
function decomp(series y, list comp)
# some calculus ...
series y_trend = ...
series y_seasonal= ..