I am having some issues on using the mle function in R. The model I have is, log(Y)~log(K)+log(L), and when I input this model into R using I keep on getting error message about missing the function minuslog1. How do I resolve this issue using the model I have listed above?
Below is the code and a small set of data.
Thank you.
> require(stats4)
Loading required package: stats4
> prod.mle<-mle(log(Y)~log(K)+log(L),) # log version
Error in minuslogl() : could not find function "minuslogl"
In addition: Warning messages:
1: In formals(fun) : argument is not a function
2: In formals(fun) : argument is not a function
DF <- structure(list(Y = c(26971.71, 330252.5, 127345.3, 3626843, 37192.73
), K = c(32.46371, 28.42238, 5.199048, 327.807, 16.01538), L = c(3013256.014,
135261574.9, 39168414.92, 1118363069, 9621912.503)),
class = "data.frame", row.names = c(NA, -5L))