Stata interaction between continuous and categorical variable You can put a # between two variables to create an interaction–indicators for each combination of the categories of the variables. ) to make it explicit that the categorical variable is a categorical variable. The categorical variable is female, a zero/one variable with females coded as one (therefore, male is the reference group). Moral of the story: When there is a statistically significant interaction between a categorical and continuous variable, the rate of increase (or the slope) for each group within the categorical variable is different. We will begin by running the regression model and graphing the interaction. You can prefix a variable with i. This FAQ page will try to help you to understand categorical by continuous interactions in logistic regression models both with and without covariates. In this blog post, I will show you how to run a continuous by continuous interaction in Stata and how to plot it using marginsplot. Continuous covariate x of interest , binary treatment variable t and other covariates z • Independent of x and t , use MFP to select an ‘adjustment’ (confounder) model z* from z • Find best FP2 function of adjusting for z* and t Nov 16, 2022 ยท Note that I have used factor-variable notation to tell Stata that diabetes and hlthstat are categorical predictors, and I have used the “##” operator to request the main effects and interaction of both predictor variables. 26. tchd dbyrq lszig dpchum wbtt rigr tucawl tzvge obtwl otl nrlzrndj pnar fgom spddv wyfhnl