Displaying 1 result from an estimated 1 matches for "mlefun".
Did you mean:
defun
1997 Jun 06
1
R-beta: nlm
...> testfun <- function(x,y) sum((x-y)^2) # x - parameters, y - data
> nlm(tfun,0)
Error: Argument "y" is missing, with no default
Thus the problem I have is as follows:
llkfun -- generic function to calculate the likelihood
for given data and parameters
mlefun -- function to evaluate mle for a given dataset which calls
nlm(llkfun,...)
I tried using "get", "sys.???" etc in 'llkfun' so that it can be written as
just a function of parameters. But it doesn't seem to work, always giving me
an error message...