lcd.interp {LogConcDEAD} | R Documentation |
A function (using the akima package) to evaluate the logarithm of the
log-concave MLE on a grid for 2-d data, for use in plot.LogConcDEAD
.
lcd.interp(out, gridlen=100, span=0.5, ...)
out |
Output from lcd.mle (of class LogConcDEAD) |
gridlen |
Size of grid |
span |
Parameter needed by interp |
... |
Other arguments to be passed to interp |
Uses the akima package's interp
function to linearly interpolate.
x |
x-values of grid |
y |
y-values of grid |
z |
Log MLE on a grid |
Needs the akima package.
Madeleine Cule mlc40@cam.ac.uk
Robert Gramacy
Richard Samworth
#simple normal data, a couple of plots set.seed(101) x <- matrix(rnorm(200),ncol=2) out <- lcd.mle(x) g <- lcd.interp(out) par(mfrow=c(2,2)) plot(out, g=g, itype="c", main="Density") plot(out, g=g, itype="c", uselog=TRUE, main="LogDensity") plot(out, g=g, itype="i", main="Density") plot(out, g=g, itype="i", uselog=TRUE, main="LogDensity")