Learn R Programming

embryogrowth (version 9.5)

logLik.HatchingSuccess: Return -log L of a fit

Description

Set of functions to study the hatching success.

Usage

# S3 method for HatchingSuccess
logLik(object, ...)

Value

Return -log L of a fit

Arguments

object

The return of a fit done with fitHS.

...

Not used

Author

Marc Girondot

Details

logLik.HatchingSuccess returns -log L of a fit

See Also

Other Hatching success: HatchingSuccess.MHmcmc(), HatchingSuccess.MHmcmc_p(), HatchingSuccess.fit(), HatchingSuccess.lnL(), HatchingSuccess.model(), nobs.HatchingSuccess(), predict.HatchingSuccess()

Examples

Run this code
if (FALSE) {
library(embryogrowth)
totalIncubation_Cc <- subset(DatabaseTSD, 
                             Species=="Caretta caretta" & 
                               Note != "Sinusoidal pattern" & 
                               !is.na(Total) & Total != 0)

par <- c(S.low=0.5, S.high=0.3, 
         P.low=25, deltaP=10, MaxHS=0.8)
         
HatchingSuccess.lnL(par=par, data=totalIncubation_Cc)

g <- HatchingSuccess.fit(par=par, data=totalIncubation_Cc)

HatchingSuccess.lnL(par=g$par, data=totalIncubation_Cc)

t <- seq(from=20, to=40, by=0.1)
CIq <- predict(g, temperature=t)

par(mar=c(4, 4, 1, 1), +0.4)
plot(g)
}

Run the code above in your browser using DataLab