Skip to contents

Specify candidate response-surface departures

Usage

masmr_departures(formula, by_outcome = FALSE)

Arguments

formula

One-sided formula for additional functions, e.g. ~ S:M or ~ I(M^2). The intercept is removed. Functions must be evaluable at targets.

by_outcome

Use separate departure coefficients per multivariate outcome.

Value

A departure specification for masmr_sensitivity().

Examples

masmr_departures(~ S:M)
#> $formula
#> ~S:M - 1
#> <environment: 0x5c66a8408dd8>
#> 
#> $by_outcome
#> [1] FALSE
#> 
#> attr(,"class")
#> [1] "masmr_departures"