Displaying 1 result from an estimated 1 matches for "llkfun".
1997 Jun 06
1
R-beta: nlm
...quires the function to
have only the parameters as arguments for this function (see example below).
> 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 writte...