Skip to content

Add Two-Way ANOVA implementation in R - #300

Closed
Prisha-star-16 wants to merge 1 commit into
TheAlgorithms:masterfrom
Prisha-star-16:master
Closed

Prisha-star-16 wants to merge 1 commit into
TheAlgorithms:masterfrom
Prisha-star-16:master

Conversation

@Prisha-star-16

Copy link
Copy Markdown

This pull request introduces a Two-Way Analysis of Variance (ANOVA) implementation in R using the built-in ToothGrowth dataset.

Features:

  • Performs Two-Way ANOVA.
  • Examines the effect of supplement type on tooth growth.
  • Examines the effect of dosage on tooth growth.
  • Tests the interaction effect between supplement type and dosage.
  • Generates an interaction plot for visualization.

File added: regression_algorithms/anova_twoway.r
Testing: Tested using R with the built-in ToothGrowth dataset.

This contribution aims to expand the statistical analysis implementations available in the repository.

Copilot AI balanced review requested due to automatic review settings November 13, 2026 18:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new two-way ANOVA script uses an uppercase .R extension instead of the required .r and lacks the required entry in DIRECTORY.md.

2 open issues

Review effort: Balanced

@@ -0,0 +1,57 @@
# Create dataset
# Display dataset
print(data)

# Perform Two-Way ANOVA
@siriak

siriak commented Nov 13, 2026

Copy link
Copy Markdown
Member

Hi, your R code is using R's built-in ANOVA implementation, not implementing the ANOVA algorithm manually. We are adding implementations of algorithms, not usage examples.

@siriak siriak closed this Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants