Announcement

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

  • Running a regression and the coefficient is 0

    Hello,

    I need to run a regress netsales on employee turnover. I calculated the turnover in percent and generated a variable with the following command: gen turnover_total = (employee who left/mean of employee)*100. After running the regression, my table says that the coefficient of turnover_ttl is zero and the Std. err. is omitted.

    Is this the correct way of generating a variable?

    Sorry, I am a starter in Stata as well as in Econometrics. I will be happy to receive feedback and help.

  • #2
    Originally posted by Phillipp Ott View Post
    gen turnover_total = (employee who left/mean of employee)*100.
    Show us the result of

    Code:
    tab turnover_total
    and the regression table. Post these within CODE delimiters.

    Comment


    • #3
      Here you can see both. What do you mean ,,within CODE delimiters''?

      Click image for larger version

Name:	Bildschirmfoto 2024-05-06 um 18.51.20.png
Views:	1
Size:	128.8 KB
ID:	1752444

      Comment


      • #4
        Code:
        turnover_ttl
        is constant in your data, so it cannot be a useful predictor.

        I used CODE delimiters there to show how they work. See also 12.3 in https://www.statalist.org/forums/help

        Comment

        Working...
        X