Displaying 1 result from an estimated 1 matches for "logliketot".
2011 Nov 29
2
Parameters setting in functions optimization
...sult of the
function.
My parameters are a mean distance of dispersion and a proportion of
individuals not assigned, coming from very far away.
The function LikeGi reads external tables and it's working as I want
(I've got a similar model on Mathematica).
My "final" function is LogLiketot :
LogLiketot<- function(dist,ms)
{
res <- NULL
for(i in 1:nrow(pop5)){
for(l in 1:nrow(freqvar)){
res <- c(res, pop5[i,l]*log(LikeGi(l,i,dist,ms)))
}
}
return(-sum(res))
}
dist is the mean dispersal distance (0, lots of meters) and ms the
proportion of ind...