Density Estimation In R -
I have estimated that the use of older believers is density:
library (NP) library (Dataset) data (loyal) F & LT; - Afghan (~ explosion + wait, data = loyal)
How do I get the density of the point not being loyal? Thanks!
? Npudens say that the
predict
method in the npdensity
object is:
estimate (f, newdata = data.frame (explosion) = 3.5, waiting = 70)) ## [1] 0.004473444
Comments
Post a Comment