Learn R Programming

embryogrowth (version 8.0)

nobs.HatchingSuccess: Return number of observations of a fit

Description

Set of functions to study the hatching success.

Usage

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

Arguments

object

The return of a fit done with fitHS.

...

Not used

Value

Return number of observations of a fit

Details

nobs.NestsResult Return number of observations of a fit

See Also

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

Examples

Run this code
# NOT RUN {
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=logit(0.8))
         
HatchingSuccesss.lnL(par=par, data=totalIncubation_Cc)

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

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

plot(g)
# }

Run the code above in your browser using DataLab