af.sensitivity: Function af.sensitivity

af.sensitivityR Documentation

Function af.sensitivity

Description

Plots Lek-Pofiles and Fischer's Deltas.

Usage

af.sensitivity(
  model,
  x = NULL,
  y = NULL,
  steps = 100,
  splitseq = seq(0, 1, by = 0.25),
  plot = T,
  verbose = T,
  ...
)

Arguments

model

Any object that works as input for function predict.

x

data.frame with numeric predictor variables.

y

numeric criterion variable.

Details

Plots Lek-Pofiles and Fischer's Deltas (i.e., the difference in R^2 that results from omitting a predictor for each predictor, as described by Fischer(2015)).

Examples

data=data.frame(y=rnorm(100)+scale(1:100),x1=rnorm(100)+scale(1:100),x2=rnorm(100));
l=lm(y~.,data=data)
sensitivity(l,data[c("x1","x2")],data["y"])

AndreasFischer1985/quantqual documentation built on June 20, 2022, 4:55 p.m.