Hi everyone.
First time Statalist poster here. I'm currently using Stata 18.
I'm working on my first ever paper and I want to make a table where I present both stratified and not stratified regression results. My outcomes heel pain (hpain) and heel pain intensity (hpain_int) dictates both linear and logistic regression. But I plan to present logistic and linear regression in separate tables. When I was doing the analysis I saw indications of interaction of sex in my data, so I want to present stratified regression results in addition to my un-stratified regression estimates.
Using outreg2 I got some really nice tables from my ordinary linear regression adjusting for age, sex, physical work (pw), regular excercise(exercise), education (edu) -> model 1: "regress hpain_int age i.sex" and model 2: "regress hpain_int age i.sex i.pw i.exercise i.edu"
However, I can't seem to find how to get these outputs in to a table whenever I use stratified analysis for example "regress hpain_int age i.exercise i.edu if sex ==0" OR "regress hpain_int age i.exercise i.edu if sex ==1"
This is the command I used to get the tables: outreg2 using regression_results, noaster sideway stats(coef ci pval) append excel dec(2)
So the question is, how to move from here to get stratified regression estimates in my table?
Any advice would be highly appreciated.
Thanks in advance
Erlend Holthe
First time Statalist poster here. I'm currently using Stata 18.
I'm working on my first ever paper and I want to make a table where I present both stratified and not stratified regression results. My outcomes heel pain (hpain) and heel pain intensity (hpain_int) dictates both linear and logistic regression. But I plan to present logistic and linear regression in separate tables. When I was doing the analysis I saw indications of interaction of sex in my data, so I want to present stratified regression results in addition to my un-stratified regression estimates.
Using outreg2 I got some really nice tables from my ordinary linear regression adjusting for age, sex, physical work (pw), regular excercise(exercise), education (edu) -> model 1: "regress hpain_int age i.sex" and model 2: "regress hpain_int age i.sex i.pw i.exercise i.edu"
However, I can't seem to find how to get these outputs in to a table whenever I use stratified analysis for example "regress hpain_int age i.exercise i.edu if sex ==0" OR "regress hpain_int age i.exercise i.edu if sex ==1"
This is the command I used to get the tables: outreg2 using regression_results, noaster sideway stats(coef ci pval) append excel dec(2)
So the question is, how to move from here to get stratified regression estimates in my table?
Any advice would be highly appreciated.
Thanks in advance
Erlend Holthe
Comment