Skip to content
Learn Plant Science

Learn Plant Science

Explore the the green world with us

  • Home
  • Statistics – Experimental Design & Data Analysis Using R
  • Linear Regression Analysis Using R
coding, programming, working-924920.jpg

Linear Regression Analysis Using R

Posted on January 27, 2023March 17, 2023 By Janith Piumal No Comments on Linear Regression Analysis Using R
Statistics – Experimental Design & Data Analysis Using R

Linear regression analysis describe the relation between two or more variables,and find the best fit line to the graph and equation of the straight line; that is used for make predictions.

Assumption of Regression Analysis

  • Random sampling
  • independent measurements or observations.
  • Dependent variable should be normally distributed
  • equal variance.

R2 = Coefficient of Determination/ Linear Regression coefficients

  • SSY = SSREG + SSRES
  • SSY = Total variation
  • SSREG = Variation explained by regression
  • SSRES = Residual variation
  • R2 = SREG/SSY
  • R2 lie between 0 to 1; if R2 close to 0 points are widely scattered, if R2 close to 1 point lay close to the line.

Note: r 2 = R2 : square of the Pearson correlation = Coefficient of determination / Linear Regression coefficients

Correlation in R

#Conducting the regression analysis and viewing the summary of results
relation = lm(my_data$Y~my_data$X)
summary(relation)

#Drawing the scatter plot
plot(my_data$X, my_data$Y)

abline(relation)

Post navigation

❮ Previous Post: Pearson’s correlation (r)
Next Post: Summarizing Evolutionary Trees ❯

You may also like

graph, growth, progress-3078545.jpg
Statistics – Experimental Design & Data Analysis Using R
Spearman Correlation
January 30, 2023
statistics, graph, chart-3411473.jpg
Statistics – Experimental Design & Data Analysis Using R
Introduction to experiment design
January 17, 2023
analytics, seo, analysis-1907993.jpg
Statistics – Experimental Design & Data Analysis Using R
Multivariate Analysis
March 18, 2023
code, coding, programming-2558220.jpg
Statistics – Experimental Design & Data Analysis Using R
ANOVA test
January 27, 2023

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Blog
  • Environment science
  • Horticulture
  • Microbiology
  • Molecular Biology
  • Phylogenetic
  • Plant Breeding
  • Statistics – Experimental Design & Data Analysis Using R
  • Uncategorized

Recent Posts

  • R for Phylogenetic
  • Character based approach of phylogenetic analysis
  • Distance based approach of phylogenetic analysis
  • Phylogenetic Analysis data
  • Applications of the phylogenetic Analysis.

Services

  • Study nature
  • Nature is a gift
  • A second spring
  • Smiles of nature
  • Just let it rain

Contact

Proin gravida nibh auctor aliquet amet anean sollicitudin, lorem quis.

  • 12 Avenue, New York, NY 10160
  • +1 910-626-85255
  • contact@nature.com
  • Home
  • Statistics
  • Phylogenetics
  • Microbiology
  • Plant Breeding
  • Horticulture
  • Molecular Biology
  • Environment science

Copyright © 2026 Learn Plant Science.

Theme: Oceanly Green by ScriptsTown