Skip to contents

Perform delta method for a function FUN to calculate associated uncertainty

Usage

delta_method(
  W,
  X,
  y,
  q,
  ind,
  FUN,
  alpha = 0.05,
  x_r = c(-3, 3),
  len = 301,
  ...
)

Arguments

W

Weight vector

X

Data

y

Response

q

Number of hidden units

ind

index of column to plot

FUN

function for delta method

alpha

significance level

x_r

x-axis range

len

number of breaks for x-axis

...

additional arguments to FUN

Value

Effect for each input