lcd.getweights {LogConcDEAD} | R Documentation |
This function takes takes a matrix of binned data and returns a matrix containing the distinct observations and a vector of weights
lcd.getweights(x)
x |
a data matrix |
This function is very simple: if we have some data where not all the observations are distinct (due to e.g. finite precision observation), we can construct a vector of weights for use in computing the maximum likelihood estimator.
x |
The distinct rows of the input matrix |
w |
Weights: row i appears w_i times |
Madeleine Cule mlc40@cam.ac.uk Robert Gramacy Richard Samworth
## simple normal example set.seed(101) x <- matrix(rnorm(200),ncol=2) tmp <- lcd.getweights(x) out <- lcd.mle(tmp$x,tmp$w) plot(out,itype="ic")