I am supposed to display a graph comparing the results by gender and students of multiple variables. It was a randomized study where certain students and faculty were sent a specific email.
The gender column in my .dta file is categorical. Male is listed as M. Female is listed as F.
My do file is not giving me any results.
Here is an explanation of the project. I have attached my code along with the results I receive in Stata:
The project consisted of a random set of students and faculty being sent a specific email. The analysis looked at how opened the email, clicked the link, total clicks, and who completed the survey.
I am responsible for creating graphs based that shows the results by gender for students and faculty. For the opened_first, clicked_first, and completed survey variable.
Any help would be greatly appreciated!
tabulate gender, generate(gender)
set more off
foreach var opened_first clicked_first clicked Totalclick survey {
forvalues i=0(1)1 {
di "FEMALE" `var'"
reg `var' social_treatment if gender1==1 & social_treatment_student==`i'
estimates store gender1`i'
di "MALE" `var'"
reg `var' social_treatment if gender2==1 & social_treatment_student==`i'
estimates store gender2`i'
}
-end-
The gender column in my .dta file is categorical. Male is listed as M. Female is listed as F.
My do file is not giving me any results.
Here is an explanation of the project. I have attached my code along with the results I receive in Stata:
The project consisted of a random set of students and faculty being sent a specific email. The analysis looked at how opened the email, clicked the link, total clicks, and who completed the survey.
I am responsible for creating graphs based that shows the results by gender for students and faculty. For the opened_first, clicked_first, and completed survey variable.
Any help would be greatly appreciated!
tabulate gender, generate(gender)
set more off
foreach var opened_first clicked_first clicked Totalclick survey {
forvalues i=0(1)1 {
di "FEMALE" `var'"
reg `var' social_treatment if gender1==1 & social_treatment_student==`i'
estimates store gender1`i'
di "MALE" `var'"
reg `var' social_treatment if gender2==1 & social_treatment_student==`i'
estimates store gender2`i'
}
-end-
Comment