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

2spa for latent interactions #27

Open
marklhc opened this issue Sep 29, 2022 · 5 comments · May be fixed by #82
Open

2spa for latent interactions #27

marklhc opened this issue Sep 29, 2022 · 5 comments · May be fixed by #82
Milestone

Comments

@marklhc
Copy link
Collaborator

marklhc commented Sep 29, 2022

No description provided.

marklhc added a commit that referenced this issue Sep 29, 2022
@marklhc
Copy link
Collaborator Author

marklhc commented Sep 30, 2022

I added a vignette tspa-interaction.Rmd in the new branch to illustrate how to do 2S-PA, using data from a recent paper. The product indicator approach is pretty tedious to specify.

The 2S-PA approach is actually pretty straightforward: just need to create a product of the factor score variables, and compute the implied error variance using the formula from Hsiao et al. (2021). And the results seem promising: The coefficient estimates are basically the same, but with a larger test statistic. It's possible that the 2S-PA approach has higher statistical power.

@Gengrui-Zhang, would you want to conduct a simulation study comparing the 2S-PA approach and the product indicator approach? It should be a good exercise and you can use a similar design as Hsiao et al. (2021).

@Gengrui-Zhang
Copy link
Owner

@marklhc Hi Mark, I'm happy to conduct a simulation study to compare. I'm also thinking about including the plot for interaction effects. Thanks for the opportunity!

@marklhc
Copy link
Collaborator Author

marklhc commented Oct 7, 2022

Here's another reference I just found out:

https://journals.sagepub.com/doi/pdf/10.1177/00222437221077266

@marklhc
Copy link
Collaborator Author

marklhc commented Jan 25, 2024

Consider possible functions to add:

  • get_fs_int() generates factor score product indicators
  • Add a vignette for continuous indicators (briefly describe simulation results)
  • Clean up the branch (or use a different branch)

@marklhc
Copy link
Collaborator Author

marklhc commented Feb 8, 2024

Discussion on Febr 8, 2024:

  • Write a stand-alone function, with input of a data frame of factor scores (and their standard errors). User can specify which columns to compute products. Winnie suggested

Or by default get all pairs of interactions? Allow users to specify the specific pair(s) if they want just one or two

@marklhc marklhc added this to the 0.0.4 milestone Feb 22, 2024
@Gengrui-Zhang Gengrui-Zhang linked a pull request May 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants