From d43ffce3c9689af340ecaf998934787acaac2794 Mon Sep 17 00:00:00 2001 From: ayushpatnaikgit Date: Wed, 23 Oct 2024 13:05:07 +0530 Subject: [PATCH] Add docs for BP test and Boot Residual linear regression. --- docs/src/api/frequentist_regression.md | 12 ++++++++++++ docs/src/man/guide.md | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/src/api/frequentist_regression.md b/docs/src/api/frequentist_regression.md index fb38d7d..3fc17d0 100644 --- a/docs/src/api/frequentist_regression.md +++ b/docs/src/api/frequentist_regression.md @@ -10,6 +10,18 @@ fit(formula::FormulaTerm, data::DataFrame, modelClass::LinearRegression) fit(formula::FormulaTerm, data::DataFrame, modelClass::LinearRegression, bootstrap::Boot_Residual, sim_size::Int64 = 1000) ``` +### With bootstrap +Fitting linear regression while estimating the standard error using bootstrap statistics. +```@docs +Boot_Residual +``` + +### Breusch-Pagan Lagrange Multiplier test for heteroscedasticity +Breusch-Pagan tests the homoscedasticity assumption of the residual variance in linear regression. +```@docs +BPTest(container::FrequentistRegression, data::DataFrame) +``` + ## Logistic Regression ```@docs fit(formula::FormulaTerm, data::DataFrame, modelClass::LogisticRegression, Link::Logit) diff --git a/docs/src/man/guide.md b/docs/src/man/guide.md index 6070ce5..c4b710c 100644 --- a/docs/src/man/guide.md +++ b/docs/src/man/guide.md @@ -50,7 +50,7 @@ sigma(model) We can also get the predicted response of the model, along with other measures like the vector of Cook's distances using the [`predict`](@ref) and [`cooksdistance`](@ref) functions exported by CRRao. Here's a plot of the vector of Cook's distances. -```@example ols_linear_regression +```@repl ols_linear_regression plot(cooksdistance(model)) ```