About 24,300 results
Open links in new tab
  1. Stata command to summarize data by "mode" - Statalist

    Feb 27, 2015 · This table should have a column for "mode" in addition to columns for other statistics (e.g., mean, median). I used this command for example "tabstat hmembers18 …

  2. median value in STATA - Statalist

    Oct 29, 2018 · Dear Statalist, Is it possible to get MEDIAN value in STATA. For example I want to know Median weight or age of adults of my survey population. May I know

  3. Deducing the mode of a categorical variable - Statalist

    Jan 13, 2023 · A search in Stata for mode brings up many false positives but the most helpful code for you is the mode () function of egen. Note also community-contributed commands …

  4. Getting the Mode - Statalist

    Aug 14, 2018 · That being so, the row median is exactly what you want, with the proviso -- really a bonus -- that a row median of 1.5 tells you that 1s and 2s are equally abundant, so that either …

  5. Summary statistics by group - Statalist

    Jun 15, 2015 · I am trying to get summary statistics for my data by group. So I want statistics on number of observations, the mean and standard deviation by the following groups; tall, not tall, …

  6. Descriptive statistics for categorial variables - Statalist

    Aug 5, 2023 · Descriptive statistics for categorial variables 05 Aug 2023, 00:27 Hello, My dataset includes 14 categorical variables and 4 continuous variables. I need to get a summary table for …

  7. Compute mean and mode for missing data - Statalist

    Feb 27, 2018 · For Level of education, I want to compute the mode (value with highest frequency) of the sample and assign that value of that mode to the missing values. For Gender, I want to …

  8. how to calculate the median - Statalist

    May 11, 2019 · My first advice is: please do read the excerpts of the Stata Manual related to the basic commands. They are free. There is a manual only to help the reader to Get Used to …

  9. Handling of Missing Values by the COLLAPSE Command

    Jun 25, 2019 · Yes, the collapse command with the sum stat will return a zero for a given by () combination if all of the called values are missing.

  10. How to find mode of a variable based on certain conditions?

    Nov 16, 2023 · The mode is just the most common value -- except that with a categorical variable (in this case string) ties are especially likely. egen, mode () supports mode calculation with …