jmbejara / comp-econ-sp18

Main Course Repository for Computational Methods in Economics (Econ 21410, Spring 2018)
16 stars 23 forks source link

Occupations #17

Closed afgong closed 6 years ago

afgong commented 6 years ago

Sorry, I should've asked this in class when we were reviewing the exercise together, but for question 1.5, when it asks us to find the number of observations in the dataset, could we use occupations.size? It returns 3772, which is equal to 943*4. I was thinking of "observations" as the number of elements in the dataset. Thank you!!!!

jmbejara commented 6 years ago

No worries! size is a different measure. To me, an observation is each user. For each observation, we ask a user about their occupation, age, etc. Thus, in this data set, each row is an observation and each column is a different "variable." Check out the concept of "tidy data".

alykhanb96 commented 6 years ago

Is occupations due with homework 2? Thanks!

jmbejara commented 6 years ago

No. The occupations exercises are not due. They're just there to help learn the material.