Displaying 1 result from an estimated 1 matches for "loglik_jm".
Did you mean:
loglik_i
2006 Jan 25
0
Log-Likelihood 3d-plot and contourplot / optim() starting values
Hello,
i have coded the following loglikelihood-function
# Log-Likelihood-Funktion
loglik_jm<-function(N,phi,t) {
n<-length(t)
i<-seq(along=t)
s1<-sum(log(N-(i-1)))
s2<-phi*sum((N-(i-1))*t[i])
n*log(phi)+s1-s2
}
# the data
t<-c(7,11,8,10,15,22,20,25,28,35)
# now i want to do a 3d-plot and a contourplot in order to see at which
values of N and phi the loglikel...