Hi all,
for some function I need to check whether the passed series corresponds
to the variable defining the cross-sectional dimension of a panel
dataset. Here is some pseudo-code:
<pseudocode>
function void foo (series G)
if $datatype == 3 && G==is_crossdim_index_series(G)
--> Run pexpand()
else
--> Some other way to construct the return series
endif
end function
I was thinking of a function like is_crossdim_index_series() which
returns a boolean.
An alternative way I was thinking about is running:
<values($obsminor) == values(G)>
However, there is not guarantee that this works correctly as it may be
just luck that (conditional on the active sample) the distinct values of
G just coincide with the ones of $obsminor I guess.
Of course, the equivalent function for the time-dimension may be
is_timedim_index_series()
Do you some other ideas?
Thanks,
Artur