Skip to content

Add effect modifier #177

Closed Answered by PhilippBach
juandavidgutier asked this question in Q&A
Nov 22, 2022 · 4 comments · 6 replies
Discussion options

You must be logged in to vote

Hi @juandavidgutier

thanks! I'm not 100% sure, if I get your questions here...

can I incorporate a not binary effect modifier, by including interaction terms or there is another form?

yes I think that's possible. If you have categorical variables you should be able to include the interactions of the one-hot levels (= the corresponding dummies generated from the levels of the variable). Continous should be possible too

Second: In the script, you have included a response variable 'wt82_71', a treatment 'qsmk', and an effect modifier 'sex', but is it possible to include a set of confounders (Xs) variables, isn't it?

Yes, that's possible. You can provide them simply via x_cols when you cr…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@juandavidgutier
Comment options

@PhilippBach
Comment options

Answer selected by SvenKlaassen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@PhilippBach
Comment options

@juandavidgutier
Comment options

Comment options

You must be logged in to vote
2 replies
@PhilippBach
Comment options

@zhoujiahongsysu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants