'Positive values with kernel function in R
How could we get only positive values using kernel function in R (eg: when estimating product's price)?
Solution 1:[1]
The density() function has an argument from that can be used for cases like this. So try:
density(x, from=0)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Karolis KonceviÄius |
