View source: R/deltaMethod-delta-generic.R
DeltaGeneric | R Documentation |
Calculates delta method sampling variance-covariance matrix for a function of parameters using a numerical Jacobian.
DeltaGeneric(
object,
def,
theta = 0,
alpha = c(0.05, 0.01, 0.001),
z = TRUE,
df = NULL
)
object |
R object.
Fitted model object with |
def |
List of character strings. A list of defined functions of parameters. The string should be a valid R expression when parsed and should result a single value when evaluated. |
theta |
Numeric vector. Parameter values when the null hypothesis is true. |
alpha |
Numeric vector. Significance level/s. |
z |
Logical.
If |
df |
Numeric.
Degrees of freedom if |
Returns an object
of class deltamethod
which is a list with the following elements:
Function call.
Function arguments.
Estimates.
Sampling variance-covariance matrix.
Jacobian matrix.
Function used ("DeltaGeneric").
Ivan Jacob Agaloos Pesigan
Other Delta Method Functions:
Delta()
object <- glm(
formula = vs ~ wt + disp,
family = "binomial",
data = mtcars
)
def <- list("exp(wt)", "exp(disp)")
DeltaGeneric(
object = object,
def = def,
alpha = 0.05
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.