Displaying 2 results from an estimated 2 matches for "caughtintraps".
2008 Feb 08
2
Catching NaNs from pweibull()
...ames(ind), env) :
Missing value or an infinity produced when evaluating the model
In addition: Warning messages:
1: NaNs produced in: pweibull(q, shape, scale, lower.tail, log.p)
2: NaNs produced in: pweibull(q, shape, scale, lower.tail, log.p)
HERE IS THE CODE:
# Observed data
Prepens.caughtintraps = c(94,45,71,64,71,31,16,19,27,16,113)
# Numbers of seeds released
Prepens.released = 1250
distances = c(2,3,4,5,7.5,10,12.5,15,17.5,20,25)
totalseedscaught = sum(Prepens.caughtintraps)
Pcatch = totalseedscaught/Prepens.released
i=11
cumsumcaught = numeric(11)
while (i>0){
cumsumcaught[i...
2008 Oct 07
0
Algorithm = "port" convergence codes
...The R help file mentions the code is "0" for converence. Should I be
concerned here that nls() is returning a local optimum here, or is this
quite normal?
Thanks in advance!
Rob
PS Please try to ignore the fact a distribution is being fitted to too few
data points!
##Code
Acancellata.caughtintraps = c(6,2,1,2,0,0,0,0,0,0,0)
Acancellata.released = 1250
distances = c(2,3,4,5,7.5,10,12.5,15,17.5,20,25)
totalseedscaught = sum(Acancellata.caughtintraps)
Pcatch = totalseedscaught/Acancellata.released
## Calculate cumulative seed numbers reaching each distance
cumsumcaught <- rev(cumsum(rev...