fit_langevin_ud: Obtaining UD estimate of an animal using Langevin movement...

View source: R/langevinUD.R

fit_langevin_udR Documentation

Obtaining UD estimate of an animal using Langevin movement model

Description

Obtaining UD estimate of an animal using Langevin movement model

Usage

fit_langevin_ud(
  formula,
  data,
  with_speed = TRUE,
  alpha = 0.95,
  leverage = FALSE
)

Arguments

formula

a formula of the form cbind(x,y)~ V1 + V2

data

a data frame with columns x, y and V1_x, V1_y, V2_x, V2_y as well as a times column.

with_speed

Logical. If TRUE, the speed parameter is estimated Other wise it is set to one

alpha

Confidence level (default: 0.95, i.e. 95% confidence intervals)

leverage

Logical. If TRUE, the standardized residuals and the leverage are returned. Default: FALSE. Might not work when there are many observations, because it creates an n times n matrix.

Value

A list of: est, the vector of estimates, and var, the covariance matrix of the estimates.


papayoun/Rhabit documentation built on July 19, 2023, 8:04 p.m.