Hi All,

I am going through logistic regression; I came across this expression

```
P = 1/1+ e^-(a+bx)
```

If a and b are known,then how to calculate “P” in R

Hi All,

I am going through logistic regression; I came across this expression

```
P = 1/1+ e^-(a+bx)
```

If a and b are known,then how to calculate “P” in R

You can use `exp()`

Example: `exp(1.563)=4.773119`

`Probability = 4.773119 / (1 + 4.773119) = 0.8267`