gertvv / gemtc

GeMTC R package: model generation for network meta-analysis
GNU General Public License v3.0
43 stars 25 forks source link

Regression summary does not respect covariate value #75

Closed JanionNevill closed 6 months ago

JanionNevill commented 7 months ago

Hi Gert,

When using the summary() function on output from relative.effect(results, t1 = refrence, covariate = covariate_value), the output is shown at the centre of the covariate range, rather than at the specified covariate value. The last 2 lines of the printed output are:

Input standardized: x' = (age - 98) / 2
Estimates at the centering value: age = 98

Where 98 is the centre of the covariate value range, not the value passed to the relative.effect() function.

Could this be changed to give estimates at the covariate value given in relative.effect()?

JanionNevill commented 6 months ago

Forgive me, my colleague has corrected my mistake. I was taking the summary of the model, rather than the relative effects object.

JanionNevill commented 6 months ago

Correct type of closure