Hi all,
I have a panel data that consists of multiple flight legs that can happen anytime within the month of January. I am using a grouping by flight legs arriving at a specific airport. For example, all flights arriving at Boston airport will be group 1 and all flights arriving to JFK will be group 2, etc. I basically have around 500 groups. I have a number of predictors that I want to use in a fixed-effects regression. Most of my predictors are continuous variables but I have one variable that I encoded as Categorical which is basically the size of the departure airport. I have two questions.
2) I want to run the Hausman test to verify that I should use Fixed Effects instead of Random Effects. Can I run Hausman when I have a categorical Variable among my predictors? Because when I do, I get the following message "the rank of the differenced variance matrix (14) does not equal the number of coefficients being tested (15); be sure this is what you expect, or there may be problems computing the test. Examine the output of your estimators for anything unexpected and possibly consider scaling your variables so that the coefficients are on a similar scale."
1) Can I run a Spearman correlation for all my variables to check for correlation? (even if some of my variables are continuous and some are categorical?
Thank you!
I have a panel data that consists of multiple flight legs that can happen anytime within the month of January. I am using a grouping by flight legs arriving at a specific airport. For example, all flights arriving at Boston airport will be group 1 and all flights arriving to JFK will be group 2, etc. I basically have around 500 groups. I have a number of predictors that I want to use in a fixed-effects regression. Most of my predictors are continuous variables but I have one variable that I encoded as Categorical which is basically the size of the departure airport. I have two questions.
2) I want to run the Hausman test to verify that I should use Fixed Effects instead of Random Effects. Can I run Hausman when I have a categorical Variable among my predictors? Because when I do, I get the following message "the rank of the differenced variance matrix (14) does not equal the number of coefficients being tested (15); be sure this is what you expect, or there may be problems computing the test. Examine the output of your estimators for anything unexpected and possibly consider scaling your variables so that the coefficients are on a similar scale."
1) Can I run a Spearman correlation for all my variables to check for correlation? (even if some of my variables are continuous and some are categorical?
Thank you!
Comment