Performs the Prais-Winsten transformation for a given data set.
pw_transform(data, rho, intercept = TRUE, groups = NULL)
a named matrix containing the data that should be transformed.
the AR(1) serial correlation coefficient \(\rho\).
logal. If TRUE (default) a column of intercept values is added.
a list containing a vector of positions of each ID variable as its elements. Only required for panel data.
A named matrix.