Hi all,
I'm a little stuck on a paper looking at differences in fasting glucose levels between different ethnic groups. We have collected data on ethnicity and glucose as well as several possible confounders (BMI, smoking status (expressed as 1/0), energy expenditure in avg week). Using various regression techniques and ttests i have determined that bmi is a considerable confounder with strong links to both fasting blood glucose level and the white european subset of my study. I would like to run a t-test along the lines of: ttest fast_glucose, by(eth) but then somehow make it regress for bmi.
Is there a command to do this in stata or am i using the wrong statistical analysis?
Any help appreciated,
David
Related Posts with Controlling for confounders in t-tests
tsspell to count only workdays?Hi, I'm trying to generate spells in Stata for an HR type of database. I want to count periods of ab…
command pbalchk with fator variablesHello, I am trying t use the command pbalchk to examine the balance of covariates with ipw weights. …
Panel of firms - FE/RE model specificationDear Experts, I want to evaluate the effect of economic policy uncertainty on investment in various…
Criteria for xtregar or xtglsHi Dear, As xtregar and xtgls are recommended for the panel dimensions when T>N, what is the cri…
Wonder how I should set my control and my treatment groups for a diff-in-diff regression?Hello! I'm looking to run my first diff-in-diff regression for my research project that talks about…
Subscribe to:
Post Comments (Atom)
0 Response to Controlling for confounders in t-tests
Post a Comment