Displaying 1 result from an estimated 1 matches for "9alfa".
Did you mean:
alfa
2007 Sep 10
1
MLE Function
...what is happening to cause such errors, or does anybody know any better tutorial material on this particular subject.
> x.gam<-rgamma(200,rate=0.5,shape=3.5)
> x<-x.gam
> library(stats4)
> ll<-function(lambda,alfa){n<-200;x<-x.gam -n*alfa*log(lambda)+n*log(gamma(alfa))-9alfa-1)*sum(log(x))+lambda*sum(x)}
Error: syntax error, unexpected SYMBOL, expecting '\n' or ';' or '}' in "ll<-function(lambda,alfa){n<-200;x<-x.gam -n*alfa*log(lambda)+n*log(gamma(alfa))-9alfa"
> ll<-function(lambda,alfa){n<-200;x<-x.gam -n*alfa*l...