mDOT-Center / pJITAI

1 stars 2 forks source link

Look into the equation for the model setting/covariates #73

Closed janelai22 closed 1 year ago

janelai22 commented 1 year ago

The equation in the "model settings/covariates/main treatment effect" and "model settings/covariates/tailored effect" are wrong in that the coefficient we're asking should correspond to the covariate. Right now, it looks like the equation is even fixed. It doesn't even consider if one adds more covariates etc.

janelai22 commented 1 year ago

You do seem to have "all_covariates.get(cov_id)" and the "generate formula" in route.py. I wonder if those help. (The equation in "Model Settings/Intercept" is right. I wonder if you can apply similar idea, except that we need to know which covariate coefficient we're asking for.)