Learn R Programming

irregulAR1 (version 1.0.0)

ar1_sim_conditional_cpp: Simulate from a stationary Gaussian AR(1) process.

Description

Simulate from a stationary Gaussian AR(1) process at n consecutive time points.

Usage

ar1_sim_conditional_cpp(pred_times, mu_pred, x_obs, obs_times, mu_obs, rho,
  sigma)

Arguments

pred_times

A vector of time points to simulate at.

x_obs

The observed values of the process.

obs_times

A vector of time points at which observations have been made.

rho

A real number strictly less than 1 in absolute value.

sigma

A positive real number.

Value

A vector of length length(pred_times) with the process values.