Description Usage Arguments Details Value Author(s) Examples
Missing values in a vector are replaced by the last (forward) or next (backward) observed value.
| 1 | 
| vec | a vector | 
| backwards |  if  | 
| na.rm |  if  | 
In the clinical literature, the procedure of replacing a missing value with the last observed value is known as the "Last Observation Carried Forward" imputation technique. However, there is a large body of literature suggesting that this method may lead to biased estimates of means and covariances and should therefore be avoided for imputation.
A vector with replaced missing values.
Martin Hecht
| 1 2 3 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.