Hi everyone:
    I have a density function f(x|theta)=theta*x^(theta-1),where
0<x<1,0<theta<infinite

I want to pratice on R to find the MLE of this function,here is my code:
    x <- (0:10)/10
f<-function(theta) prod(theta*x^(theta-1))
mle(f)
and r gave me :Error in eval(expr, envir, enclos) : argument is missing,
with no default

what mistake I just made?and how to add a constraint of theta>0 in my
function.

Great thanks for your time~

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to