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
*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
*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
))-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
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