Construction of an optimal design balanced for first order of carry-over effect.

1 | ```
optimaldesign(nbPanelist, nbProd, nbProdByPanelist, nbPanelistMin = nbPanelist, ordre = TRUE, weight = 0.5, graine = Sys.time(), nbDesignProd = 10, nbDesignOrdre = 50, matEssImp = NA )
``` |

`nbPanelist` |
Maximum number of panelists |

`nbProd` |
Number of products |

`nbProdByPanelist` |
Number of products that each panelist will evaluate |

`nbPanelistMin` |
Minimum number of panelists who will evaluate the products |

`ordre` |
Boolean, if TRUE the order of presentation of the product to the panelist is given |

`weight` |
Importance of the rank and of the carry-over effect. From 0 to 1, if 0 the design will only take into account the carry-over effect (and not the rank effect). |

`graine` |
initialization of the algorithm |

`nbDesignProd` |
Number of iteration of the algorithm to affect the products to the panelists |

`nbDesignOrdre` |
Number of iteration of the algorithm for the rank of presentation |

`matEssImp` |
Matrix of the imposed experiments |

List with

`design ` |
Design with the products evaluated by each panelist |

`rank ` |
Design with the products evaluated by each panelist and with the rank |

E. P<e9>rinel, O. Tran, J. Mazet

P<e9>rinel E. & Pag<e8>s J. (2003). Optimal nested cross-over designs in sensory analysis. *Food Quality and Preference*. 15 (5). pp. 439-446.

1 2 3 4 | ```
## Not run:
optimaldesign(nbPanelist=10,nbPanelistMin=8,nbProd=5,nbProdByPanelist=3)
## End(Not run)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.