i am trying to see the distribution in my data.. i used the command xtile command and generated my quintile n(5).. what command should i run if i want to see the distribution of the variable x in different sectors or regions..
xtile variable x5=variable x,nq(5)
then i ran a tabstat variable x5 ; or tab variable x5..
will it be fine if i run
tab sector variable x5
tab sector variable x5 if region=1
Related Posts with xtile
How to Distinctively Remove the Observations with Specific Missing Value Patterns in Stata?Hello, I have a small dataset as follows, clear input byte (id gr) 1 1 1 2 1 2 1 . 1 . 1 . 2 1 2 2 2…
Connect X and Y axisHi When I use scheme for twoway graph, such as white_tableau, etc, X axis is separated from Y axis.…
Stata interpreting the same string value as different valuesI have postcodes in my dataset that I want to group together. As you can see when I type tab Postcod…
How to Correctly Create a Variable to Indicate if a student Failed Grade in Stata?Hello, I have a small dataset as follows, id is student id, and gr represents grade. If a student fa…
Merge if variable name is similarDear Stata users, I am trying to merge two datasets which are firm-level panel data (master) and N…
Subscribe to:
Post Comments (Atom)
0 Response to xtile
Post a Comment