a) What is the sample size? Your answer should be an integer.
b) What is the average age? Your answer should have4digits after the period (e.g., 25.1267).
c) What is the median age? Your answer should be an integer (e.g., 35).
d) What is the IQR of age? Your answer should be an integer (e.g., 35).
e) What is the standard deviation of the sample? Your answer should have4digits after the period (e.g., 25.1267)
A B D E 1 caseid agep sexp 2 1 54 3 2 39 4 42 5 4 18 6 5 14 7 6 42 8 7 40 9 19 10 9 59 11 10 44 12 11 41 13 12 17 14 13 48 15 14 36 I N B B N N B B N B N N N N B N N B N N P P N P N N PP 16 15 9 17 16 3 18 17 71 19 18 56 20 19 67 21 20 48 22 21 52 23 22 70 24 23 83 25 24 54 26 25 74 27 26 68 28 27 48 29 28 5028 27 48 2 29 28 50 1 30 29 15 1 31 30 67 1 32 31 16 1 33 32 76 2 34 33 38 2 35 34 8 1 36 35 62 1 37 36 56 2 38 37 30 1 39 38 14 1 40 39 46 2 41 40 18 1 42 41 42 43 42 18 44 43 78 45 44 42 N P N P NINA 46 45 5 47 46 50 48 47 48 49 48 18 50 49 24 1 51 50 20 2 52 51 16 1 53 52 11 2 54 53 78 1 55 54 52 1 56 55 82 2801029 801028 43 801030 801029 5 801031 801030 5 801032 801031 45 NNNN 801033 801032 1 801034 801033 14 801035 801034 36 2 801036 801035 9 801037 801036 32 801038 801037 14 1 801039 801038 0 801040 801039 37 801041 801040 4 801042 801041 27 IN 801043 801042 50 801044 801043 13 801045 801044 37 801046 801045 25 801047 801046 13 801048 801047 11 801049 801048 47 1 801050 801049 31 801051 801050 66 2 801052 801051 25 2 801053 801052 43 1 801054 801053 0 1 801055 801054 46 2 801056 801055 24 NLet say you have observations in cells A1 to A100. Here is how you would compute some summary statistics based on these observations. First, place the cursor in a cell where there is no observation (e.g. A102) then type the command corresponding to the summary statistic you would like to compute. Summary Statistic Command Mean =average (A1 : A100) Median =median (A1 : A100) Mode =mode (A1 : A100) Sample Variance =var (A1 : A100) Population Variance =varp (A1 : A100) Sample Standard Deviation =stdev (A1 : A100) Population Standard Deviation =stdevp (A1 : A100) Maximum Value =max (A1 : A100) Minimum Value =min (A1 : A100) kth Percentile =percentile (A1 : A100, k/100) e. g. percentile (Al : A100, 0. 45) Useful Stata Commands For these questions, you only need to know one command in Stata. The command name is "summarize", which will give you all the information about your variable of interest (i.e., agep). If I want to get the descriptive statistics (including the percentiles) of that variable, all you need to type is "summarize agep, detail" after having imported the data