Description Usage Arguments Value See Also Examples

Predict the cow performances with the whole models

1 | ```
predict_cow(cow_simulated, models, list_index, list_value, R = 10, B = 5)
``` |

`cow_simulated` |
a matrix or data.frame 1 by p attributes with the colnames matching with the models |

`models` |
list of all the models describing the cow attributes |

`list_index` |
vector containing the position in the data.frame of the fixed value |

`list_value` |
vector containing the value at the list_index position |

`R` |
integer to converge toward a stable result (10 by default) |

`B` |
integer for the number of bootstrap which switch the order of prediction (5 by default) |

a predicted cow througth a object cow

1 2 3 4 5 6 | ```
library(mfe)
load(models.RData) #need models fitted
data(indicateurs)
cow0 <- setNames(data.frame(matrix(0, ncol = ncol(indicateurs), nrow = 1)), colnames(indicateurs))
pred_cow <- predict_cow(cow_simulated = cow0, models = models, list_index = 1:3, list_value = c(0, 1, -0.5), B=5, R=10)
plot(pred_cow)
``` |

alex-conanec/OptFilBov documentation built on May 21, 2019, 9:46 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.