Description Usage Arguments Value See Also

View source: R/zeitzeiger_predict.R

`zeitzeigerPredict`

predicts the value of the periodic variable
for test observations, given training data and SPCs. This function
calls `mle2`

.

1 2 | ```
zeitzeigerPredict(xTrain, timeTrain, xTest, spcResult, nKnots = 3,
nSpc = NA, timeRange = seq(0, 1 - 0.01, 0.01))
``` |

`xTrain` |
Matrix of measurements for training data, observations in rows and features in columns. |

`timeTrain` |
Vector of values of the periodic variable for training observations, where 0 corresponds to the lowest possible value and 1 corresponds to the highest possible value. |

`xTest` |
Matrix of measurements for test data, observations in rows and features in columns. |

`spcResult` |
Result from |

`nKnots` |
Number of internal knots to use for the periodic smoothing spline. |

`nSpc` |
Vector of the number of SPCs to use for prediction. If |

`timeRange` |
Vector of values of the periodic variable at which to calculate likelihood. The time with the highest likelihood is used as the initial value for the MLE optimizer. |

`timeDepLike` |
3-D array of likelihood, with dimensions for each test observation,
each element of |

`mleFit` |
List (for each element in |

`timePred` |
Matrix of predicted times for test observations by values of |

jakejh/zeitzeiger documentation built on Nov. 22, 2018, 6:53 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.