Page 1 of 1

Feature suggestion: mean Center for linear regression module

Posted: Tue May 18, 2021 5:38 pm
by alancai1974
Hello:
I have a suggestion here for the linear regression module. The module allows us to include interaction effects. When we do interaction effects, we often mean center the variables before we calculated their interaction term. Is that possible to include this option in the module, so that we do not need to manually do the mean center for the analysis?
Thanks

Re: Feature suggestion: mean Center for linear regression mo

Posted: Tue May 18, 2021 10:07 pm
by mcfanda@gmail.com
you can use GAMLj for that. It centers the variables by default. linear regression module does the standard regression, so centering would be confusing

Re: Feature suggestion: mean Center for linear regression mo

Posted: Thu May 20, 2021 1:04 pm
by alancai1974
mcfanda@gmail.com wrote:you can use GAMLj for that. It centers the variables by default. linear regression module does the standard regression, so centering would be confusing
but GAMLj lacks another function: it does report change of R square. The linear regression model does that, but do not provide mean center. So neither of them can satisfy the need.

Re: Feature suggestion: mean Center for linear regression mo

Posted: Sun May 30, 2021 10:59 am
by jonathon
it's pretty easy to center variables using the computed/transformed variable system.

i.e. varName - VMEAN(varName)

cheers