---
title: "`r tablesForReport$projectName `"
fig: no crop
geometry: left=1mm, right=1mm, top=1mm, bottom=1mm, asymmetric
indent: TRUE
output:
  html_document:
    df_print: paged
    fig_caption: yes
  word_document: default
  pdf_document: default
header-includes: 
    - \usepackage{placeins}
    - \usepackage{indentfirst}
    - \usepackage{setspace}\doublespacing
    - \usepackage{lineno}
    - \linenumbers
author: "`r 'PFIM 7.0' `"
date: "`r paste( 'Date:' , Sys.Date())`"
---
 
```{r setup, include=FALSE}
options(kableExtra.latex.load_packages = FALSE)
options(kableExtra.auto_format = FALSE)
knitr::opts_chunk$set(echo = TRUE)
```
# Evaluation outputs
```{r evaluationOutputs, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$evaluationOutputs
```

# Model equations 
```{r modelEquations, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$modelEquations
```

# Error model 
```{r ModelError, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$modelErrorTable
```

# Model parameters 
```{r ModelParameters, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$modelParametersTable
```

# Administration parameters 
```{r AdministrationParameters, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$administrationTable
```

# Initial design
```{r initialDesignTable, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$initialDesignTable
```

# Initial design constraints 
```{r Constraints, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"}  
tablesForReport$constraintsTableForReport
``` 

# Determinant, D-criterion and condition numbers of the FIM 
```{r FIMCriteriaTable, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$fimInitialDesignTable$FIMCriteriaTable
``` 

# Optimal design
```{r optimalDesignTable, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$optimalDesignTable
```

# Fisher information matrix

## Fixed effects 
```{r FimFixedEffect, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$fimOptimalTable$fixedEffectsTable
``` 

# Determinant, D-criterion of the FIM and condition numbers
```{r Criteria, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$fimOptimalTable$FIMCriteriaTable
``` 
 
# Values for SE and RSE
```{r SEandRSE, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$fimOptimalTable$SEAndRSETable
``` 

# Graphs for the responses
```{r plotsEvaluation, 'results' = FALSE, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$plotsEvaluation 
``` 

# Graphs for the sensitivity indices
```{r plotSensitivityIndices, 'results' = FALSE, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$plotSensitivityIndices 
``` 

# Graphs for the optimal weights
```{r plotWeight, 'results' = FALSE, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
plotWeights( tablesForReport$pfimproject ) 
``` 

# Graphs for the SE, RSE and the Shrinkage
```{r plotSEandRSE, 'results' = FALSE, echo = FALSE, comment='', fig.height = 5, fig.width = 10, fig.align = "center"} 
tablesForReport$plotSE 
tablesForReport$plotRSE 
plotShrinkage( tablesForReport$fim, tablesForReport$pfimproject )
``` 



  
