Announcement

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

  • re-formulate a function

    Hello everyone,
    I have this equation
    Code:
    g=exp(1.546776)*(x/(1-x)^(0.4314782)*y^(1-0.4314782)-exp(-1.944835)*(x/(1-x))^(-0.1137733)*y^0.113773
    to express in standard terms, i.e. y= f(x), and I am stuck.
    "g" is a variable from my dataset, y and x are unknowns.
    I have looked at several posts but the other problems/equations were quite different; I have also tried to search for websites to solve it online or tips about R, but nothing seemed appropriate for my programming skills (that are quite basic).

    Any help would be extremely appreciated.
    Thank you very much

  • #2
    Is this about

    1. mathematics? why expect f(x) rather than f(x, g)

    2. R? because this is not a good place for that

    3. Stata?

    Comment


    • #3
      Sorry for the lack of clarity.
      I'm working on Stata and I have to solve this function in terms of y. Basically I have to create a steady-state curve that shows every values of y and x that solve this equation. I've left g as implicit in the formulation just because it is a vector variable, but it is known, so it is y=f(x) for sure.
      R was just the last resort!

      Sorry again

      Comment


      • #4
        This is a mathematics question, rather than a Stata question, so you may have better luck on a forum devoted to mathematics.

        I was once a mathematics major, and I suspect there is no closed form solution of that equation which, given values for x and g, yields a value for y.

        I note that x is limited to the open interval (0,1) so that (x/(1-x)) will be strictly positive.

        Your equation has mismatched parentheses. It should be
        Code:
        g = exp(1.546776)*(x/(1-x))^(0.4314782)*y^(1-0.4314782) - exp(-1.944835)*(x/(1-x))^(-0.1137733)*y^0.113773
        In general, the tool to use for this sort of work is a language like Mathematica, designed for doing symbolic mathematics. The only reason one might choose a language designed for doing statistics is the law of the instrument, for which Wikipedia quotes the psychologist Abraham Maslow as saying "I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail."

        Comment

        Working...
        X