Implementation of a method to estimate the linear probability model, ensuring that the predicted probabilities are inside the (0,1) interval. The same method can be applied to any variable for which predictions between 0 and 1 are required.
Andrea Beci, Paolo Frumento
Maintainer: Andrea Beci <andreabeci08@gmail.com>
Package: | clpm |
Type: | Package |
Version: | 1.0 |
Date: | 2023-04-30 |
License: | GPL-2 |
The function clpm
x <- runif(100)
y <- rbinom(100, 1, x)
clpm(y~x)
Run the code above in your browser using DataLab