Inherited methods
Method fit()
Calculates the maximum likelihood estimator for the model
parameters based on given data.
Usage
ExpGLM$fit(
data,
params_init = private$params,
loglik = loglik_xy,
inplace = FALSE
)
Arguments
data
tibble containing the data to fit the model to
params_init
initial value of the model parameters to use for the
optimization (defaults to the fitted parameter values)
loglik
function(data, model, params)
defaults to loglik_xy()
inplace
logical
; if TRUE
, default model parameters are set
accordingly and parameter estimator is not returned
Returns
MLE of the model parameters for the given data, same shape as
params_init
Method f_yx()
Evaluates the conditional density function.
Usage
ExpGLM$f_yx(t, x, params = private$params)
Arguments
t
value(s) at which the conditional density shall be evaluated
x
matrix of covariates, each row representing one sample
params
model parameters to use (list()
with tag beta), defaults to
the fitted parameter values
Returns
value(s) of the conditional density function, same shape as t
Method F_yx()
Evaluates the conditional distribution function.
Usage
ExpGLM$F_yx(t, x, params = private$params)
Arguments
t
value(s) at which the conditional distribution shall be
evaluated
x
matrix of covariates, each row representing one sample
params
model parameters to use (list()
with tag beta), defaults to
the fitted parameter values
Returns
value(s) of the conditional distribution function, same shape as
t
Method F1_yx()
Evaluates the conditional quantile function.
Usage
ExpGLM$F1_yx(t, x, params = private$params)
Arguments
t
value(s) at which the conditional quantile function shall be
evaluated
x
matrix of covariates, each row representing one sample
params
model parameters to use (list()
with tag beta), defaults to
the fitted parameter values
Returns
value(s) of the conditional quantile function, same shape as
t
Method sample_yx()
Generates a new sample of response variables with the same
conditional distribution.
Usage
ExpGLM$sample_yx(x, params = private$params)
Arguments
x
matrix of covariates, each row representing one sample
params
model parameters to use (list()
with tag beta), defaults to
the fitted parameter values
Returns
vector of sampled response variables, same length as nrow(x)
Method clone()
The objects of this class are cloneable with this method.
Usage
ExpGLM$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.