PanelModel
R2026bDescription
PanelModel is an object that encapsulates a fitted panel
(longitudinal) data regression model. A panel data regression model describes the linear
relationship between a response variable and predictor variables, in which the data set is a
random, observational sample of n subjects measured over
T time points. The model accommodates one-way, linear fixed or random
effects (heterogeneity), which you can use to control for, and study,
unobserved, subject-specific, phenomena associated with the response variable.
Use the properties of a PanelModel object to investigate the fitted panel
data regression model. The object properties include information about coefficient and effect
estimates, associated variances and covariances, and inferences.
Creation
Create a PanelModel object by using the fitrepanel or fitfepanel function.
The
fitrepanelfunction fits a one-way random effects panel data regression model to data. That is, the observed and unobserved effects are independent (the grouping variable is independent of all predictor variables).The
fitfepanelfunction fits a one-way fixed effects panel data regression model to data. That is, the observed and unobserved effects are correlated (at least one predictor variable is correlated with the grouping variable).
Both model types are not to be confused with the linear mixed-effects model, as
estimated by the fitlme function.
Properties
Object Functions
predict | Predict responses for new observations from panel data regression model |
Examples
Alternative Functionality
When your longitudinal data set is the result of a controlled experiment study, fit a
linear mixed-effects model (LinearMixedModel object) by using fitlme.
References
Version History
Introduced in R2026a
See Also
fitrepanel | fitlme | fitrm | fitlmematrix


