Dear all.
I cannot give you the data but my problem should be quite simple to understand.
I'm working with medical data and I have a variable for the diagnostics (categorical variable). I also have a variable for a reimbursement procedure (also a categorical variable).
Additionally, I have a value for total costs (let’s say in USD).
Each of my IDs have these three values.
I'm trying to see if the mean of my total costs for the diagnostics is equal to the mean of total costs for the corresponding reimbursement procedure.
In other terms I want the null hypothesis:
H0: mean(total costs for reimbursement code 1) = mean(total costs for diagnostic code 5).
Of course a command like that doesn't work on STATA, but it's to illustrate better:
ttest (total_costs if reim_code==1) == (total_costs if diag_code==5)
I tried many things but can't find anything that worked.
Thank you very much for your help.
Alejandro
I cannot give you the data but my problem should be quite simple to understand.
I'm working with medical data and I have a variable for the diagnostics (categorical variable). I also have a variable for a reimbursement procedure (also a categorical variable).
Additionally, I have a value for total costs (let’s say in USD).
Each of my IDs have these three values.
I'm trying to see if the mean of my total costs for the diagnostics is equal to the mean of total costs for the corresponding reimbursement procedure.
In other terms I want the null hypothesis:
H0: mean(total costs for reimbursement code 1) = mean(total costs for diagnostic code 5).
Of course a command like that doesn't work on STATA, but it's to illustrate better:
ttest (total_costs if reim_code==1) == (total_costs if diag_code==5)
I tried many things but can't find anything that worked.
Thank you very much for your help.
Alejandro
Comment