R/ESTM.R

Defines functions ESTM

Documented in ESTM

ESTM = function(L, Formula, Data, conf.level=0.95)
{
  if (!attr(terms(Formula, data=Data), "response")) stop("Dependent variable should be provided!")
  x = ModelMatrix(Formula, Data)

  rx = REG(Formula, Data, summarize=FALSE)
  return(est(L, x$X, rx, conf.level=conf.level))
}

Try the sasLM package in your browser

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

sasLM documentation built on Nov. 19, 2023, 5:12 p.m.