On Tue, 2 Jul 2019, Allin Cottrell wrote:
On Tue, 2 Jul 2019, Sven Schreiber wrote:
> Am 01.07.2019 um 22:38 schrieb Allin Cottrell:
>> On Fri, 28 Jun 2019, Riccardo (Jack) Lucchetti wrote:
>>
>>>
>>> Yes, the bug is quite nasty, I think we ought to release soon.
>>
>> I'm ready to release tomorrow -- anyone have a reason to hold off for
>> a little?
>>
> I don't want to delay the release, but the interface (signature) of the
> new function msplitby() strikes me as odd. The example in the built-in
> reference is a perfect (sic!) example for this oddity - the matrix X
> should be split into two chunks (AFAICS), but instead of being able to
> write...
>
> msplitby(X, {1,1,3}) # unsupported syntax currently
>
> the example goes like...
>
> msplitby(X ~ {1,1,3}', 4)
>
> which even to me as a veteran hansl coder looks quite complicated. I
> don't really see the advantage of the latter formulation.
I think you're right. If the split-index column is treated as special
(specifically, not wanted in the output) it would be cleaner to make
the second argument a vector in its own right rather than a column
number.
Since this function is not present in any release I guess we could
change the signature now.
I agree, this is much cleaner; thanks, Sven.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------