Introductory Stata 5: Distribution of Variables using summarize, inspect, sktest, and histogram

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • **********************************
    *5. Distribution of a Continuous *
    * Variable *
    **********************************
    cd "/Users/bobwen/Documents/2022 RUclips Teaching/Introductory Stata/5. Distribution/"
    capture log close
    log using distribution.log, text replace
    sysuse nlsw88, clear
    describe
    *summarize wage
    summarize wage
    summarize wage, detail
    *inspect wage
    inspect wage
    *perform a skewness and kurtosis test for normality on wage
    sktest wage
    *visual interpretation of the distribution
    histogram wage, bin(30)
    histogram wage, bin(30) percent addlabels
    log close
    #summarize #sktest #histogram

Комментарии • 1