R

Weighted LOESS (LOcal regrESSion)

LOcal regrESSion (LOESS) or LOcally WEighted Scatter-plot Smoother (LOWESS) LOESS or LOWESS is a nonparametric technique to fit a smooth curve through points in a scatter plot. This approach uses locally estimated linear regression at its core. The following code illustrates how to include a loess line using the ggplot2 package. library(ggplot2) set.seed(1) x <- rnorm(60) y <- c(rnorm(40), 10, rnorm(19)) df <- data.frame(x=x, y=y) ## Without weights ggplot(data=df, aes(x=x, y=y)) + geom_point() + geom_smooth(method=loess, legend=FALSE) Furthermore your can plot loess smoothing weighting the observations as follows:

Reporting your model outputs

Let’s see how to format your model outputs with parameters package in R by Lüdecke et al. (2020). Fit a simple linear regression model #install.packages("parameters") library(parameters) library(magrittr) library(gt) library(see) model <- lm(Volume ~ Height + Girth, data=trees) Reporting model parameter estimates model %>% model_parameters() Parameter | Coefficient | SE | 95% CI | t(28) | p -------------------------------------------------------------------- (Intercept) | -57.99 | 8.64 | [-75.68, -40.29] | -6.71 | < .

Highlight data points in a scatterplot

Highlight selected points in the scatterplot

Import data into R: Overwritten object names

Read data files

Working with built-in data sets in R

How to view datasets in a particular package, or or list the available data sets?

Statistical Machine Learning for Medicinal Plant Identification

MEDIPI, a statistical machine learning algorithm for medicinal plant identification and a leaf image database for plant classification.

Dashboard to monitor COVID-19 situation in Sri Lanka

Dashboard to monitor COVID-19 situation in Sri Lanka. This dashboard is built with R using the R Makrdown framework and was adapted from “coronavirus_dashboard” by Rami Krispin.

Summarizing with dplyr

Summarizing variables with dplyr

How to install and load multiple packages at once?

Install multiple R packages at once/ check and install missing packages.

Some useful Greek letters you might use on your reports

Commands to type Greek letters on Rmarkdown or Latex