Announcement

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

  • How to generate predicted value by beta/standardized regression coefficients, rather than unstandardized ones?

    Is there a simple way to generate predicted value by beta/standardized regression coefficients. For example, the code below only generates a predicted value "priceHat" by unstandardized coefficients.

    Code:
    webuse "auto.dta", clear
    
    regress price mpg weight, beta
    
    predict priceHat
    Last edited by Victor Smith; 02 Mar 2020, 01:12. Reason: ols

  • #2
    Why would you want to do that? I suspect we are dealing with an xy problem (https://en.wikipedia.org/wiki/XY_problem), so that is why I am asking.
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      As a variation on the theme by @Maarten Buis: You could get the same prediction with standardized coefficients, but then you would have to standardize your predictors too. There are not two different predictions.

      Comment

      Working...
      X