Displaying 1 result from an estimated 1 matches for "freqvar".
2011 Nov 29
2
Parameters setting in functions optimization
...ssigned, 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 individuals (0-1).
Of course, I want them to be as low as possible.
I'd tried to enter the initials para...