Hello,
I have a query about using count if function. My data is arranged in Panel Data setting. For sake of simplicity, I keep it simple. My first column shows the year observation (2010, 2011, 2012) and the name of this variable is "Year". Second column records temperature values with the label "Temperature". It has both positive and negative numbers.
I want to use "count if" function for counting positive and negative temperature values. For example if want to count observations with positive temperature I use this command "count if Temperature>0". But how can I change this command in order to know say the Positive Temperature values in the Year 2010?
I have a query about using count if function. My data is arranged in Panel Data setting. For sake of simplicity, I keep it simple. My first column shows the year observation (2010, 2011, 2012) and the name of this variable is "Year". Second column records temperature values with the label "Temperature". It has both positive and negative numbers.
I want to use "count if" function for counting positive and negative temperature values. For example if want to count observations with positive temperature I use this command "count if Temperature>0". But how can I change this command in order to know say the Positive Temperature values in the Year 2010?
Comment