Data Science Asked on January 6, 2021

I fit a regression model using python `statsmodels.formula.api`

package and obtain the coefficients/results. Here’s the model:

```
Price ~ Availability + Income + unemployment + labor_force + HH
```

The coefficients are:

```
coef
Intercept 18.8172
Availability 0.0860
Income 9.213e-05
unemployment -1.562e-05
labor_force 5.78e-06
```

I’d like to calculate the value of Availability for when `Price = 0`

and for different values of independent variable which vary by time. Basically, solve for `Availability`

when `Price = 0`

.

`0 = Intercept + b1 * Avail + b2 * Income + b3 * U + b4 * L`

I need python to solve this equation for `Avail`

.

I realize I can do this with a python function by simply solving the equation, ,however, I was wondering if there are any in built methods I could use to obtain the equation and solve?

Get help from others!

Recent Answers

- Peter Machado on Why fry rice before boiling?
- haakon.io on Why fry rice before boiling?
- Joshua Engel on Why fry rice before boiling?
- Jon Church on Why fry rice before boiling?
- Lex on Does Google Analytics track 404 page responses as valid page views?

Recent Questions

- How can I transform graph image into a tikzpicture LaTeX code?
- How Do I Get The Ifruit App Off Of Gta 5 / Grand Theft Auto 5
- Iv’e designed a space elevator using a series of lasers. do you know anybody i could submit the designs too that could manufacture the concept and put it to use
- Need help finding a book. Female OP protagonist, magic
- Why is the WWF pending games (“Your turn”) area replaced w/ a column of “Bonus & Reward”gift boxes?

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP