Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Displaying asterisks on the p-value of F-statistic (comparison of coefficients)

    Dear Statalisters,

    I am running a regression and testing that coefficients are equal. I would like the asterisks to be displayed on the p-value of F-statistic that I report in the table. Please find below my code:

    reg income training experience, r cluster(urbancode)
    test training=experience
    local p`y'a=r(p)
    outreg2 using "$dout/pval12.xls", addstat(Adjusted R-squared, e(r2_a), "training=experience", `p`y'a') dec(2) replace ctitle(`i')

    However, the pvalue of "training=experience" is not displaying asterisks for statistical significance. How I can add asterisks, please?

    Your help is appreciated.
    Many thanks.



  • #2
    Welcome to Statalist, econ. (Or if in your culture the family name comes first, welcome, student.)

    Perhaps the asterisk() option described in the output of help outreg2 can be made to do what you need.

    Lacking a reproducible example, I'm not able to test this recommendation. To improve the likelihood and quality of future assistance, please review the Statalist FAQ linked to from the top of the page, as well as from the Advice on Posting link on the page you used to create your post. Note especially sections 9-12 on how to best pose your question.

    The more you help others understand your problem, the more likely others are to be able to help you solve your problem.

    Also note in the Statalist FAQ the preference for the use of full real names on this forum, and take the time to click "Contact Us" below and request your registration name be changed to include your personal and family names.

    Comment

    Working...
    X