Dear Sir or Madam,
I am trying to detect influencial cases using the "cook" approach with regress. It works fine when I look for influencial cases that have a negative impact on the coefficient, but I am finding it hard when it comes to detecting the ones that have a positive impact:
Here is the code I am running:
regress Y a b c f e i.YEAR if (ID!=24344)
list ID e cook if cook>4/74
dfbeta
sort _dfbeta_2
list ID _dfbeta_2 in -4/1
The message that appears is "observation numbers out of range"
Could somebody help me?
Thank you.
Best,
Joao
Related Posts with Problem in detecting influencial cases using cook
Restructure Survival DatasetHi, I have survival data and I would like to change the structure of the dataset. stnum=patient id s…
recreating the output from -margins- with interactionsI am trying to understand Stata's -margins- command by recreating results by hand, and I am getting …
Does it make sense to use decadal dummies for quinquennial data?Dear Statalists, I have a question of if it is reasonable to use decadal dummies as time fixed effe…
3 slsHi everyone, I am quite new to use Stata for 3 stage least square. Please help! I would like to est…
How to compare two ivregress models with two independent samplesHi there, I want to compare two ivregress models with two independent samples. I am trying to see i…
Subscribe to:
Post Comments (Atom)
0 Response to Problem in detecting influencial cases using cook
Post a Comment