update.model.vam | R Documentation |
model.vam
or mle.vam
objectupdate
changes the data set in model.vam
or mle.vam
object.
## S3 method for class 'model.vam'
update(model,data)
## S3 method for class 'mle.vam'
update(model,data)
model |
an object of class |
data |
a data frame or possibly a list (when several system are considered together) containing the observations. |
The specifications of data
must be compatible with the formula used to create the object model
. See model.vam
function for more details.
L. Doyen and R. Drouilhet
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.