Open dkarletsos opened 1 month ago
Hi @dkarletsos, thanks for reporting this.
I can recreate the error with likelihood = "exponential"
; the issue is caused by predict()
trying to access the auxiliary regression parameters beta_aux
when there are none, because the exponential model has no shape parameters. Both aux_regression
and aux_by
have no effect for the exponential model, and are ignored.
This is fixed in the latest development version, and I have also added informative warning messages when aux_regression
or aux_by
are being ignored (e.g. for the exponential model).
You can install this latest version from r-universe:
install.packages("multinma", repos = c("https://dmphillippo.r-universe.dev", getOption("repos")))
I don't see errors for any other likelihoods, these are behaving as expected in my testing. Are you still seeing other errors?
Hi,
The following code works when likelihood is set to 'msplines' but returns the error below when 'exponential' or 'weibull' or any other likelihood that is not 'mspline'. Am I missing any settings in nma() ?
CODE:
ERROR: