R/drop.reponse.R

Defines functions drop.response

Documented in drop.response

drop.response <- function(formula, data) {
  tt <- terms(formula, data=data)
	if (length(attr(tt, "term.labels"))!=0) {
		formula <- reformulate(attr(tt, "term.labels"),
                           intercept = attr(tt, "intercept"))
	} else formula <- ~1
	return(formula)
}

Try the DiceKriging package in your browser

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

DiceKriging documentation built on Feb. 24, 2021, 1:07 a.m.