Am 19.12.2020 um 20:52 schrieb Allin Cottrell:
On Sat, 19 Dec 2020, Sven Schreiber wrote:
Same thing outside of a function. If you're subsampled and want
to
store
a matrix as a series inside a bundle you have to make it into a
proper
series first. That's the only way gretl can know where it's supposed to
start; there's no notion of a dataset inside a bundle.
OK, somehow I thought that whenever a series is created/assigned the
currently active sample is the relevant reference, no matter whether
it's inside a bundle or not. But it's no big deal.
Here's a sketch of how one might get matrix -> series
alignnment right
when the matrix in question doesn't have t1 and t2 set automatically.
<hansl>
function series extract_series (const bundle bx)
smpl bx.t1 bx.t2
return bx.mat
end function
Hm, after some thought I can see why that would work, thanks.
-sven