tests/moPrep-test.R

library(Amelia)

x <- rnorm(100)
s <- x + rnorm(100, 0, 0.1)
vv <- rep(0.1^2/var(s), 100)

df <- data.frame(x, s)
mop <- moPrep(df,s ~ s,error.proportion = vv)
a.out <- amelia(mop)

Try the Amelia package in your browser

Any scripts or data that you put into this service are public.

Amelia documentation built on May 29, 2024, 2:17 a.m.