Hello everyone,
I use the command below in Stata 17 to calculate the total income and total tax paid in each quintile (Q) and each group (Status). How can I add a column to this table calculating the tax column divided by the income column? In other words, how can I calculate the share of total tax in total income for each quintile and group?
table (Q Status)(), statistic(frequency) statistic (sum income) statistic (sum tax) statistic (percent tax) nformat(%12.0fc total) nformat(%12.2fc percent) sformat("%s%%" percent )
Thanks.
Related Posts with Dividing a column by another
how to add a grouping by variable to the scatter plot to create a panel New user to STATA pls helpHi all, Im very new user to STATA. I have the code below and am wanting to create a panel of scatter…
Interpretation of interaction variableDear all, I am analyzing whether a CEO turnover (c. 600 events) has a long-term (5 years) impact on…
Checks for Tobit regressionHi i have done a tobit regression to estimate the price elasticities of demand for alcohols and have…
Regression with or without dummy variable? + visualizationHi all, 1. I need to perform a regression with the log of house price (loglprice) as a dependent va…
outreg2 for ivreghdfeDear Statalists, I am quite new to reghdfe and ivreghdfe. I hope someone can help me with my code. …
Subscribe to:
Post Comments (Atom)
0 Response to Dividing a column by another
Post a Comment