group Stata Summarize Variable By Group To have it give you summary statistics for a single variable simply tell it which variable you want…