RE: [R] help for MLE

2004-02-25 Thread Edward Sun
Hi, when I write the likelihood function as fn-function(x) -50*log(2*pi)-100*log(sigma)-(1/2*(sum((x-mu)/sigma)^2)) then what should I do since it shows that Error in log(sigma) : Object sigma not found. Thanks edward From: Edward Sun Dear Sir/Madam, I am using R version 1.8.1. I am

[R] help for MLE

2004-02-22 Thread Edward Sun
*log((sd(x))^2))-50*log(sqrt(2*pi))-(1/2*((mean(x))^2))*(sum((x-(mean(x))^2)) After I input above function, the '' '' turned to be '' + ''. and it did not work. I am looking for the help to solve this tast by writting a likelihood function. Thanks a lot. Best regards. edward sun

[R] help for MLE

2004-02-22 Thread Edward Sun
*log((sd(x))^2))-50*log(sqrt(2*pi))-(1/2*((mean(x))^2))*(sum((x-(mean(x))^2)) After I input above function, the '' '' turned to be '' + ''. and it did not work. I am looking for the help to solve this tast by writting a likelihood function. Thanks a lot. Best regards. edward sun p.s x=rnorm(100

[R] Maximum likelihood estimation in R

2004-02-15 Thread Edward Sun
))-50*log(sqrt(2*pi))-(1/2*((mean(x))^2))*(sum((x-(mean(x))^2)), but it did not work. I am looking for the complete syntax to finish my target task. Thanks for your help. Best regards. Edward Sun Germany __ [EMAIL PROTECTED] mailing list https

[R] for help about MLE in R

2004-02-05 Thread Edward Sun
you please help me to compose the syntax for the purpose that find maximum likelihood estimates of the generated random numbers by direct maximization of the likelihood function? Thanks a lot. Best regards Edward Sun __ [EMAIL PROTECTED] mailing list