update.model.vam: Updates the data set in 'model.vam' or 'mle.vam' object

View source: R/vam.R

update.model.vamR Documentation

Updates the data set in model.vam or mle.vam object

Description

update changes the data set in model.vam or mle.vam object.

Usage

## S3 method for class 'model.vam'
update(model,data)
## S3 method for class 'mle.vam'
update(model,data)

Arguments

model

an object of class model.vam or mle.vam.

data

a data frame or possibly a list (when several system are considered together) containing the observations.

Details

The specifications of data must be compatible with the formula used to create the object model. See model.vam function for more details.

Author(s)

L. Doyen and R. Drouilhet

Examples

# The model used to plan PM times
modMPplan <- model.vam(Time & Type ~ (ARA1(.87) | Weibull(.0015,2.6)) & (ARAInf(.44)))
# The model used for failure times simulation
simCMPM<-sim.vam( ~ (ARA1(.9) | Weibull(.002,2.5)) & (ARAInf(.25) | AtIntensity(0.35,modMPplan)) )
simData<-simulate(simCMPM,30)
# The simulated data set is updated in the model used for the PM policy
update(modMPplan,simData)
# The failureintensity of the failure times simulation model
plot(modMPplan,'i',ylim=c(0,0.5))
# And the intensity of the model used for the PM policy
plot(simCMPM,'i',col='blue',add=TRUE)
# The thershold at which PM are done
abline(h=0.35)

rcqls/VAM documentation built on Jan. 14, 2024, 9:07 p.m.