This function fits an Ornstein-Uhlenbeck (OU) model to time-series data. The OU
model has four generating parameters: an ancestral trait value (anc
), an optimum
value (theta
), the strength of attraction to the optimum (alpha
), and a
parameter that reflects the tendency of traits to diffuse (vstep
). In a
microevolutionary context, these parameters can be related to natural selection and
genetic drift; see Hunt et al. (2008).