I am trying to run scalar code to have some of my comparisons come right up as my command is run. This being the case I did some research and understood that scalar commands were able to deliver this solution. However, I am concerned that there is an issue with the panel commands as I use xtset and xtreg.
My commands are below:
xtreg log_total_stu_less_than_30000 ///
///
log_net_price_less_than_30000 ///
///
log_avg_tuition_fees_ft ///
///
endowment_beg composite_financial_index number_admitted unemployment ///
///
,fe
///
log_net_price_less_than_30000 ///
///
log_avg_tuition_fees_ft ///
///
endowment_beg composite_financial_index number_admitted unemployment ///
///
,fe
*Extract the Coefficient to make the output cleaner and more clear then add display text to make the results easier to digest
scalar beta_Log_net_price_less_than_30000 =_b[Log_net_price_less_than_30000]
display "A 1% increase in the discount for students in this income range is associated with " beta_Log_net_price_less_than_30000 " % increase in student enrollment for this income range"
display "A 5% increase in the discount for students in this income range is associated with " beta_Log_net_price_less_than_30000*5 " % increase in student enrollment for this income range"
display "A 15% increase in the discount for students in this income range is associated with " beta_Log_net_price_less_than_30000*15 " % increase in student enrollment for this income range"
scalar beta_Log_net_price_less_than_30000 =_b[Log_net_price_less_than_30000]
display "A 1% increase in the discount for students in this income range is associated with " beta_Log_net_price_less_than_30000 " % increase in student enrollment for this income range"
display "A 5% increase in the discount for students in this income range is associated with " beta_Log_net_price_less_than_30000*5 " % increase in student enrollment for this income range"
display "A 15% increase in the discount for students in this income range is associated with " beta_Log_net_price_less_than_30000*15 " % increase in student enrollment for this income range"
0 Response to Issue running xtreg commands with scalar
Post a Comment