Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть How to create a Student's t Q-Q plot in R using ggplot2? | StatswithR | Arnab Hazra

  • StatswithR
  • 2020-08-13
  • 1927
How to create a Student's t Q-Q plot in R using ggplot2? | StatswithR | Arnab Hazra
  • ok logo

Скачать How to create a Student's t Q-Q plot in R using ggplot2? | StatswithR | Arnab Hazra бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно How to create a Student's t Q-Q plot in R using ggplot2? | StatswithR | Arnab Hazra или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку How to create a Student's t Q-Q plot in R using ggplot2? | StatswithR | Arnab Hazra бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео How to create a Student's t Q-Q plot in R using ggplot2? | StatswithR | Arnab Hazra

Here we explain how to generate a presentation/publication-quality Student's t Q-Q plot in R/R-studio using ggplot2. The codes for the steps explained in the video are as follows. Copy and paste them into R, run them one-by-one and try to understand what each argument is doing.

#datascience #datavisualization #visualization #ggplot2 #tidyverse #qqplot #rstudio #rcoding #studentt

Step 0a: If you don't know how to load data into R, simulate a vector X using

X = 175 + 10 * rt(1e4, df = 10)

Step 0b: if you have not installed the packages fitdistrplus, metRology, ggplot2 and qqplotr, run

install.packages("fitdistrplus"); library(fitdistrplus)
install.packages("metRology"); library(metRology)
install.packages("ggplot2"); library(ggplot2)
install.packages("qqplotr"); library(qqplotr)

Step 0c: Estimate the parameters using

par.est = fitdist(X, distr = "t.scaled", start = list(mean = mean(X), sd = sd(X), df = 30))

Step 1: ggplot(mapping = aes(sample = X)) +
stat_qq_point(distribution = "t.scaled", dparams = par.est$estimate, size = 2)

Step 2: ggplot(mapping = aes(sample = X)) +
stat_qq_point(distribution = "t.scaled", dparams = par.est$estimate, size = 2) + xlab("Theoretical Quantiles") + ylab("Sample Quantiles")

Step 3: ggplot(mapping = aes(sample = X)) +
stat_qq_point(distribution = "t.scaled", dparams = par.est$estimate, size = 2) + stat_qq_line(distribution = "t.scaled", dparams = par.est$estimate) +
xlab("Theoretical Quantiles") + ylab("Sample Quantiles")

Step 4: ggplot(mapping = aes(sample = X)) +
stat_qq_band(distribution = "t.scaled", dparams = par.est$estimate) +
stat_qq_point(distribution = "t.scaled", dparams = par.est$estimate, size = 2) + stat_qq_line(distribution = "t.scaled", dparams = par.est$estimate) +
xlab("Theoretical Quantiles") + ylab("Sample Quantiles")

Step 5: ggplot(mapping = aes(sample = X)) +
stat_qq_band(distribution = "t.scaled", dparams = par.est$estimate) +
stat_qq_point(distribution = "t.scaled", dparams = par.est$estimate, size = 2) + stat_qq_line(distribution = "t.scaled", dparams = par.est$estimate) +
xlab("Theoretical Quantiles") + ylab("Sample Quantiles") +
ggtitle("Student's t Q-Q plot of heights")

Step 6: ggplot(mapping = aes(sample = X)) +
stat_qq_band(distribution = "t.scaled", dparams = par.est$estimate) +
stat_qq_point(distribution = "t.scaled", dparams = par.est$estimate, size = 2) + stat_qq_line(distribution = "t.scaled", dparams = par.est$estimate) +
xlab("Theoretical Quantiles") + ylab("Sample Quantiles") +
ggtitle("Student's t Q-Q plot of heights") +
theme(plot.title = element_text(hjust = 0.5))

Step 7: ggplot(mapping = aes(sample = X)) +
stat_qq_band(distribution = "t.scaled", dparams = par.est$estimate) +
stat_qq_point(distribution = "t.scaled", dparams = par.est$estimate, size = 2) + stat_qq_line(distribution = "t.scaled", dparams = par.est$estimate) +
xlab("Theoretical Quantiles") + ylab("Sample Quantiles") +
ggtitle("Student's t Q-Q plot of heights") +
theme(plot.title = element_text(hjust = 0.5)) +
theme(axis.text=element_text(size=20),
axis.title=element_text(size=20),
plot.title = element_text(size=20))

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]