Another great video Mike! But for the first method you introduced, I do not suggest using it because it might cause some problems if there are missing values in the variable lotsize.
Hey Mike, say you were testing whether the number of bedrooms have a higher return in colonial areas than in non-colonial ones, how would you do this? Is there a video for this?
You will need to create a slope-dummy variable that interacts 'bedrooms' with the colonial style dummy. Here is the video:ruclips.net/video/Qc9IrsbZVww/видео.html Hope that helps!
Thanks for this video Mike. In my regression result, the dummy variable has been omitted due to collinearity - please how can this be fixed? Thank you once again.
I would have to see the data to tell for sure, but this can happen when multiple dummy variables are used: the treatment/control groups may perfectly overlap. Check the correlation coefficients among all of your variables for perfect correlations.
@@mikejonaseconometrics1886 Thanks very much Mike for your quick and kind revert. My dependent variable is the gini coefficient and my independent variable is the fiscal adjustment size (scaled in GDP) and the dummy (the slope of the adjustment size) corresponds to 1 for years in which fiscal adjustments were implemented and 0 otherwise. I haven't yet introduced any control variables nor factored yet for country and fixed effects. Please what do you think could be wrong? Thank you so very much.
Sir, I have a dataset in stata which has a string variable having names i want to list only those names which starts or contains a particular characters. Please help me out with the command My question in brief sir .. for example I have a dataset with two variables one string variable and another numeric variable i.e., name and age if i want to list people who are under age of 10 , the command is like list if age < 10 simply stata list out the data, but i want to list out the only people who's names are starting with "S" or a part of name with "ra".. Usually in mysql we write this command select * from xxxx where name like "S%" or name like "%ran%" Which is very simple... but i couldn't get in stata.. Please help me out.. Thank You Sir
ive created dummy variables for different years, gen y18=0, replace y18=1 if Year==2018. done that for 3 different years but when i add them to my regression y20 comes out as omitted
You must omit one of the dummy variables to avoid perfect multicolinearity. In general, if you have m categories, use m-1 dummy variables. The omitted category becomes the baseline.
Halo Mike..this is Fatur from Indonesia. I love your tutorial...How to make dummies with many categories? i.e. Primary school=1 juniorhigh=2 seniorhigh=3 etc.?
Hello Fatur. If you have a categorical variable such as "education" that takes on a value of 1=primary, 2=junior high, etc; then you can use the factor variable expansion option in Stata. for example: xi:reg y i.education will estimate the regression with m-1 dummy variables if your education variable has m categories. type "help xi" in stata for more info.
Amazing! Works better than defining the variable in one command
Glad it helped!
Hey Mike. Thanks a lot for the well explanation.
Very helpful! Thank you very much. Have a great day!
Thanks, you too!
Another great video Mike! But for the first method you introduced, I do not suggest using it because it might cause some problems if there are missing values in the variable lotsize.
Thank you Mike, you did a good job
Thank you too!
thanks ,
clear , simple & interesting
BEAUTIFUL VIDEO
Hey Mike, congrats on your great work! One question: how do I compute p-value for the omitted dummy variable? Thanks
Thank you for this well explained video my question is how many observation minimally needed per each dummy variable ?
Hey Mike, you are super! Can you help me? I need serie of volatility for gdp and inflation rate?I 'm working on my phd disertation.
Hi, Thank you for the video, but here 9010 is an integer, can we do it also to the string?
Hi Mike, do you know how the interpretation would change if I have a log-log function?
Cobb Douglas linearised? Thank you!!
thanks
Hey Mike, say you were testing whether the number of bedrooms have a higher return in colonial
areas than in non-colonial ones, how would you do this? Is there a video for this?
You will need to create a slope-dummy variable that interacts 'bedrooms' with the colonial style dummy. Here is the video:ruclips.net/video/Qc9IrsbZVww/видео.html
Hope that helps!
Thanks for this video Mike. In my regression result, the dummy variable has been omitted due to collinearity - please how can this be fixed? Thank you once again.
I would have to see the data to tell for sure, but this can happen when multiple dummy variables are used: the treatment/control groups may perfectly overlap. Check the correlation coefficients among all of your variables for perfect correlations.
@@mikejonaseconometrics1886 Thanks very much Mike for your quick and kind revert. My dependent variable is the gini coefficient and my independent variable is the fiscal adjustment size (scaled in GDP) and the dummy (the slope of the adjustment size) corresponds to 1 for years in which fiscal adjustments were implemented and 0 otherwise. I haven't yet introduced any control variables nor factored yet for country and fixed effects. Please what do you think could be wrong? Thank you so very much.
@@Angie-wc1bu Hey have you found a solution to this? I have the same issue..
@@pietislekker No I haven't.
Sir, I have a dataset in stata which has a string variable having names i want to list only those names which starts or contains a particular characters. Please help me out with the command
My question in brief sir .. for example I have a dataset with two variables one string variable and another numeric variable i.e., name and age if i want to list people who are under age of 10 , the command is like list if age < 10 simply stata list out the data, but i want to list out the only people who's names are starting with "S" or a part of name with "ra"..
Usually in mysql we write this command
select * from xxxx where name like "S%" or name like "%ran%"
Which is very simple... but i couldn't get in stata.. Please help me out.. Thank You Sir
ive created dummy variables for different years, gen y18=0, replace y18=1 if Year==2018. done that for 3 different years but when i add them to my regression y20 comes out as omitted
You must omit one of the dummy variables to avoid perfect multicolinearity. In general, if you have m categories, use m-1 dummy variables. The omitted category becomes the baseline.
@@mikejonaseconometrics1886 yeah i forgot that i have to use one year as the base. Thank you
I have an enquiry about dummy verable so please help nd how can I contact you
Hi, you can email me at mrjonas@usfca.edu. Let me know your question and I’ll see if I can help.
Halo Mike..this is Fatur from Indonesia. I love your tutorial...How to make dummies with many categories? i.e. Primary school=1 juniorhigh=2 seniorhigh=3 etc.?
Hello Fatur. If you have a categorical variable such as "education" that takes on a value of 1=primary, 2=junior high, etc; then you can use the factor variable expansion option in Stata. for example: xi:reg y i.education
will estimate the regression with m-1 dummy variables if your education variable has m categories. type "help xi" in stata for more info.
THANK YOU SO MUCH SIR JESUS WAS BORN TODAY