Am 08.02.2021 um 11:59 schrieb Sven Schreiber:
Am 07.02.2021 um 22:51 schrieb Allin Cottrell:
> On Sun, 7 Feb 2021, Sven Schreiber wrote:
>> - I've been struggling without success to tell the mle command what the
>> parameters should be called. The background being that I need to specify
>> a single composite vector to accommodate several specifications. In the
>> guide (ch.26) I saw a similar problem, and there the workaround was to
>> silence mle and instead semi-manually invoke the modprint apparatus. But
>> wouldn't it be more efficient if simply the wanted names could be
>> injected, replacing the generic stuff that is in the $parnames accessor?
>
> Feature request?
I guess so, but I'm not exactly clear in what direction.
Since the problem rests with the content of $model.parnames, perhaps one
idea would be a new --parnames=myarray option to mle?
Here's another idea: What about using the rownames of a vector for the
printout? Something like this in quasi-hansl:
# initialize
matrix cf = zeros(3)
# labels
rnameset(cf, "income invest price")
# estimate
mle loglik = ...some function of cf...
...
params cf
end mle
And the printout would substitute c[1], c[2], c[3] with income/invest/price.
thanks
sven