I am using Stata version 15.1 and I have 47 variables and 1,010 observations in my dataset. I am doing educational research with 112 colleges included.

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
*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"
I reviewed the xtreg handbook from Stata and I see on page 26 that the coefficient command is listed under the matrices section as follows - "e(b) coefficient vector" The manual I am referencing is located here. I feel like the solution is here or related to a code modification of this, but I am still a bit lost on how this should be incorporated into the code or why my scalar command is not working as planned and how to adjust to get the scalar to work with my data.