Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for covariates in model number input #63

Open
maltelueken opened this issue Nov 8, 2023 · 5 comments
Open

Add option for covariates in model number input #63

maltelueken opened this issue Nov 8, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@maltelueken
Copy link
Collaborator

The SPSS PROCESS macro has an option to add covariates. Currently, we only allow this in the variable input interface.

@maltelueken maltelueken added the enhancement New feature or request label Nov 8, 2023
@maltelueken
Copy link
Collaborator Author

There is already some commented out code in inst/qml/ClassicProcess.qml#273

@patc3
Copy link
Collaborator

patc3 commented Jan 11, 2024

There is already some commented out code in inst/qml/ClassicProcess.qml#273

I tried to uncomment the code, but the UI didn't change. I'll dig deeper soon, but was this not supposed to change the UI?

@patc3
Copy link
Collaborator

patc3 commented Jan 11, 2024

Should we use the same approach as the mediation analysis, i.e. partial out the effect of control variables from all variables included in the model? (that's what I would do anyhow)

image

image

@maltelueken
Copy link
Collaborator Author

Should we use the same approach as the mediation analysis, i.e. partial out the effect of control variables from all variables included in the model? (that's what I would do anyhow)

In the SPSS macro, there are three options:

  • Include covariates for dependent and all mediators
  • Include covariates only for mediators
  • Include covariates only for dependent

I think the first makes the most sense too, but I don't think it would be too hard to implement all three options, allowing the user to switch.

@maltelueken
Copy link
Collaborator Author

I tried to uncomment the code, but the UI didn't change. I'll dig deeper soon, but was this not supposed to change the UI?

For me, uncommenting did change the GUI. Maybe if you restart the nightly and install the dev module with the uncommented code it does change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants