rjdverse / rjdemetra

R interface to JDemetra+ v 2.x
https://rjdverse.github.io/rjdemetra
52 stars 16 forks source link

Printing userdef variables with their name #142

Open TanguyBarthelemy opened 4 months ago

TanguyBarthelemy commented 4 months ago

When you display a model (obtained with the get_model function), the regression variables are not displayed with their real name but with a name given by jdemetra+:

image

However, their variable name does exist in the object:

image

Is it possible to modify the display to add these more meaningful variable names instead of the current names?

AQLT commented 1 month ago

They do not come from the same object and there are some differences in the Java output. In the first case the names comes from the results of the regarima model (https://github.com/rjdverse/rjdemetra/blob/develop/R/regarima_rslts.R#L52) and in the second case it comes from the specification (https://github.com/rjdverse/rjdemetra/blob/develop/R/spec_rjd.R#L193-L220). I think it would be complicated to do it in R since you would need to indentify your external regressors from all the regressions coefficients (outliers, easter, td, etc.), but maybe something can be done using the context_dictionary. Do you have a reproducible example?