Hello, I am looking to center a covariate, per the reference below. This covariate is Hospital Referral Region (HRR), which has 306 values and enters my model as 305 indicator variables. I also use this variable in interaction terms in the model.
Per Kraemer and Blaysey (and Cronbach's) recommendations, the indicator variables should be recoded from 1 and 0 to 1-1/m and -1/m, with one (arbitrary) HRR eliminated. I'd welcome any suggestions on how to easily code this in Stata.
Kraemer HC & Blasey CM. Centring in regression analyses: a strategy to prevent errors in statistical inference. International Journal of Methods in Psychiatric Research, 13: 3.
Related Posts with Centering an Indicator Variable
Quantile regression - error message for Q(1)Dear group This is my first time that I post a question. Command: qreg Y1 X1 X2 X3, quantile (?) …
How to display the 3 most reoccurring observations in a string variable (presented as median)Hi. I have a very long data set where I have a number of observations for each id. In each observati…
Saving predicted group membership (either Y or N) from binary elastic net regressionHi I'm running this binary analysis to predict inadequate Ofsted Y/N from a range of indicators: el…
Correlation for two variables for most recent 5 yearsHi, I want to find the correlation between deflated revenues and deflated expenses for the most rec…
Creating graphs with scalar variablesI am having trouble difficulty creating a graph using scalar variables stored from stata (found by e…
Subscribe to:
Post Comments (Atom)
0 Response to Centering an Indicator Variable
Post a Comment