Hi there, I was hoping you could help.

I would like to compare the means between 2 samples for panel data.
Context: I am comparing people with debt and without debt (0/1)

I want to compare summary statistics across the panel, with a number of variables, sum of which are binary.

I have seen that you can use, for example, "xtreg depressed(0/1) hasdebt, fe" and use the significance of the coefficient on hasdebt.

Is this correct? Does this also apply to ranksum?

For a larger set of variables would I have to do this for each variable?

Thank you in advance!