Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
baypy
baypy

Module

  • baypy
    • analysis
      • compute_DIC
      • residuals_plot
      • summary
      • trace_plot
    • diagnostics
      • autocorrelation_plot
      • autocorrelation_summary
      • effective_sample_size
    • model
      • LinearModel
        • data
        • likelihood
        • log_likelihood
        • posteriors
        • posteriors_to_frame
        • predict_distribution
        • priors
        • residuals
        • response_variable
        • variable_names
      • Model
    • regression
      • LinearRegression
        • sample
      • Regression
      • sample_beta
      • sample_sigma2
  • Usage Examples
    • Auto MPG
      • Model Set Up
      • Sampling
      • Convergence Diagnostics
      • Posteriors Analysis
    • Heart
      • Model Set Up
      • Sampling
      • Convergence Diagnostics
      • Posteriors Analysis
    • Real Estate
      • Model Set Up
      • Sampling
      • Convergence Diagnostics
      • Posteriors Analysis
    • Salary
      • Model Set Up
      • Sampling
      • Convergence Diagnostics
      • Posteriors Analysis
    • TV Marketing
      • Model Set Up
      • Sampling
      • Convergence Diagnostics
      • Posteriors Analysis
      • Alternative Model Set Up
      • Sampling
      • Convergence Diagnostics
      • Posteriors Analysis

References

  • Get Started
  • PyPI
  • Issue Tracker
  • Source Code
  • License
  • Release Notes
    • Version 1.5.1
    • Version 1.5.0
    • Version 1.4.1
    • Version 1.4.0
    • Version 1.3.0
    • Version 1.2.1
    • Version 1.2.0
    • Version 1.1.2
    • Version 1.1.1
    • Version 1.1.0
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.0
Back to top
View this page

data¶

property LinearModel.data: DataFrame

Data for the linear regression model, is a pandas.DataFrame containing all regressor variables \(X\) and the response variable \(y\).

Returns¶

pandas.DataFrame

Observed data of the model. It cannot be empty. It must contain regressor variables \(X\) and the response_variable \(y\).

Raises

TypeError

If data is not an instance of pandas.DataFrame.

ValueError

If data is an empty pandas.DataFrame.

Next
likelihood
Previous
LinearModel
Copyright © 2023 - 2026, Andrea Blengino
Made with Sphinx and @pradyunsg's Furo