mra.default <- function(oformula, odata, eformula, edata){
dat <- init(oformula, odata,
eformula, edata,
scale = TRUE)
tsr <- TSR(dat)
wald <- Wald.test(dat)
i <- dat$map$bet
lm <- LM.test(dat, wald$par[i], sqrt(wald$vcov[i, i]))
ct <- c.test(dat, wald$par, wald$vcov)
#pt1 <- pleio.test1(dat, wald$par)
pt <- pleio.test(dat, wald$par, wald$vcov)
return(pt)
fit <- reorganize(dat, wald, lm, ct, pt, tsr)
fit$call <- match.call()
class(fit) <- 'mra'
fit
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.