If you just want to ignore the missing values you don't need to do anything special. If you want to do multiple imputation or something, multiple imputation is the mi suite
I'd recommend taking a look through my book section on missing data. www.theeffectbook.net/ch-UndertheRug.html#why-it-had-to-go-i-dont-know-missing-data
I am running a panel regression with data from a list of small countries on energy sector. the thing is some of these countries did not have any renewable energy for few years in the data period. it's not that data are missing, it is just that there were no renewable energy. is it ok for me to put 0 as data for those few years. this happens to two variables. my dependent variable (renewable energy production) and one independent variable (funding for renewable energy). is it ok for me to put 0 in those few years. as for funding in some years there were international funding, and in other years there were no funding.
4:19 'missing(varname)' function that checks if a value is missing from a variable
uff you just saved my ass. big thanks from Kiel
What is missing data handle command?
If you just want to ignore the missing values you don't need to do anything special. If you want to do multiple imputation or something, multiple imputation is the mi suite
Hello, What is the recommended method to treat missing values? should I just drop the whole observation, or is there another method ?
I'd recommend taking a look through my book section on missing data. www.theeffectbook.net/ch-UndertheRug.html#why-it-had-to-go-i-dont-know-missing-data
I am running a panel regression with data from a list of small countries on energy sector. the thing is some of these countries did not have any renewable energy for few years in the data period. it's not that data are missing, it is just that there were no renewable energy. is it ok for me to put 0 as data for those few years. this happens to two variables. my dependent variable (renewable energy production) and one independent variable (funding for renewable energy). is it ok for me to put 0 in those few years. as for funding in some years there were international funding, and in other years there were no funding.
Yep, if the true value is a 0, then putting in a 0 makes sense.
how u regress after generated new variable? include all x y and new variable generated too?
Yes
Please i need do file on this M TRY TO APPLYING THE SAME BUT CHOKED HALF WAY
I'm afraid I don't still have the do files for these old videos, you'll have to go by what's on the screen
how about dropping observations that are missing?
Most commands will do this automatically. Or you can do drop if missing(var)
@@NickHuntingtonKlein Thanks for the quick reply. Yes, I noticed when doing the commands separately [:)~
THANKS A LOT :) Greetings from France !
can u share the do file for all your classes? watching videos consumes time
I'm afraid I made these videos ages ago and don't have the do files any more.
im always missing my data:(