tvRE
estimate time-varying coefficient of a random effects
panel data model using kernel smoothing.
tvRE(x, ...)# S3 method for matrix
tvRE(
x,
y,
z = NULL,
ez = NULL,
bw,
Sigma = NULL,
neq,
obs,
est = c("lc", "ll"),
tkernel = c("Epa", "Gaussian"),
...
)
# S3 method for tvplm
tvRE(x, ...)
An object used to select a method.
Other arguments passed to specific methods.
A vector with dependent variable.
A vector with the variable over which coefficients are smooth over.
(optional) A scalar or vector with the smoothing values. If values are included then the vector z is used.
A numeric vector with the bandwidth.
NULL (default) or a matrix of size obs x obs..
A sclar with the number of equations
A scalar with the number of time observations
The nonparametric estimation method, one of "lc" (default) for linear constant or "ll" for local linear.
The type of kernel used in the coefficients estimation method, one of Epanesnikov ("Epa") or "Gaussian".
tvRE
returns a list containing:
A vector of length obs, number of observations with the time-varying estimates.
A vector of length obs with the fited values from the estimation.
A vector of length obs with the residuals from the estimation.
A vector of length neq with the fixed effects.