powered by
Fit method for margin class
# S4 method for margin fit(x, y, tsoptions = list(), control = list())
An object of class marginfit.
an object of class margin.
a vector or time series of data.
list of optional arguments: hessian is logical variable specifying whether Hessian matrix should be returned; start is vector od named starting values
list of control parameters to be passed to the optim function.
optim
margmod <- margin("gauss", pars = c(mu = 0, sigma = 1)) data <- sim(margmod, n = 500) fit(margmod, data)
Run the code above in your browser using DataLab