Description Usage Examples
Linear model with observational errors
1
lmFlood(form, x, S, tol = 1e-08)
1 2 3 4 5 6 7 8 9 10 11 12
nn <- 1000 xx <- data.frame( x1 = runif(nn), x2 = runif(nn)) * 2 S <- exp(-as.matrix(dist(xx))) sres <- mnormt::rmnorm(1, varcov = S) y <- 5 -2 * xx[,1] + 3 * xx[,2] + rnorm(nn) + sres fit <- lmFlood(y ~ 1+ x1 + x2, xx, S) summary(fit)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.