Announcement

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

  • Solving equations in STATA

    Dear STATA users,

    I am trying to solve equations to find value in STATA. Can you please have a look at the following case and give me some advices:

    I have variable X (continuous variable). I would like to form a linear equation:

    Y = a + b * X (1)
    mean(Y) = 0 (2)
    std(Y) = 1 (3)

    Can I solve three equations (1), (2), and (3) to find Y, a, and b ?

    Thank you very much for your time.

    Nguyen.

  • #2
    Sydney NGUYEN , while a and b are scalars in the above, Y's are not. So I am puzzled by your formulation of the task.

    But from the information you provided it sounds like a form of normalization known as standardization in statistics, see more here:
    https://en.wikipedia.org/wiki/Standard_score

    Comment

    Working...
    X