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

[bug] foreach, doParallel and estimateEffect #285

Open
coolsteed opened this issue Dec 26, 2023 · 0 comments
Open

[bug] foreach, doParallel and estimateEffect #285

coolsteed opened this issue Dec 26, 2023 · 0 comments

Comments

@coolsteed
Copy link

Using political blogs data as an example,

In a foreach loop, the following codes won't work, though it works perfectly fine outside foreach loop.

topics <- c(1:5)
prep <- estimateEffect(topics ~ rating, model_test, metadata = pol_topics_dfm$meta)

As a comparison, the following works in both

prep <- estimateEffect(1:5 ~ rating, model_test, metadata = pol_topics_dfm$meta)
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

No branches or pull requests

1 participant