Hi everyone
just wanted help, I was trying to do a simple table
tabulating dm, htn, and chd by ph group using this code: dtable i.dm_b i.htn_b i.chd_b, by(ph_group, tests) factor(, statistics(fvfrequency fvpercent) test(pearson)) nformat(%9.0f frequency fvpercent )
note: using test pearson across levels of ph_group for dm_b, htn_b, and chd_b.
it generates this output, I try to remove the rows with 0 such as DM 0, HTN 0 and CHD 0 as they are redundant (it is more of a yes or no, hypertension - 0 no, 1-yes, however when I remove those rows using db tables i also lose the pvalue which is in line with it in the same row
any work around to this?
thank you!
-Kevin

just wanted help, I was trying to do a simple table
tabulating dm, htn, and chd by ph group using this code: dtable i.dm_b i.htn_b i.chd_b, by(ph_group, tests) factor(, statistics(fvfrequency fvpercent) test(pearson)) nformat(%9.0f frequency fvpercent )
note: using test pearson across levels of ph_group for dm_b, htn_b, and chd_b.
it generates this output, I try to remove the rows with 0 such as DM 0, HTN 0 and CHD 0 as they are redundant (it is more of a yes or no, hypertension - 0 no, 1-yes, however when I remove those rows using db tables i also lose the pvalue which is in line with it in the same row
any work around to this?
thank you!
-Kevin
Comment