% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/panel_utils.R
\name{D}
\alias{D}
\title{Difference operator for dcce formulas}
\usage{
D(x, k = 1L)
}
\arguments{
\item{x}{A numeric vector.}

\item{k}{Integer difference order. Default 1.}
}
\value{
A numeric vector of the same length as \code{x} with leading \code{NA}s.
}
\description{
Creates a differenced version of a variable for use inside \code{dcce()} formulas.
}
\examples{
x <- c(10, 20, 30, 40, 50)
D(x, 1)   # NA 10 10 10 10
D(x, 2)   # NA NA 20 20 20
}
