Docsity
Docsity

Prepara tus exámenes
Prepara tus exámenes

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity


Consigue puntos base para descargar
Consigue puntos base para descargar

Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium


Orientación Universidad
Orientación Universidad


Apuntes para instalar y usar Swirl en RStudio para realizar análisis estadísticos, Esquemas y mapas conceptuales de Análisis de Datos y Métodos Estadísticos

En este documento se detalla cómo instalar y utilizar swirl, un paquete de r, en rstudio. Se incluyen instrucciones para instalarlo a través de la interfaz de rstudio y mediante la línea de comandos, así como cómo activarlo y utilizar sus comandos básicos. Además, se presentan ejemplos de cómo utilizar swirl para realizar análisis estadísticos básicos como el cálculo de media, mediana, modo, varianza y desviación estándar, as well as creating plots like barplot and boxplot. Se recomienda el uso de swirl para estudiantes de estadística y programación de r.

Tipo: Esquemas y mapas conceptuales

2021/2022

Subido el 14/10/2022

annavallsss
annavallsss 🇪🇸

2 documentos

1 / 2

Toggle sidebar

Esta página no es visible en la vista previa

¡No te pierdas las partes importantes!

bg1
open the RStudio and you get a window with three subwindows:
- console → where we type the commands
- environment/History
- Files/Plots/Packages
CONSOLE TAB:
> To indicate a “prompt”
- how to instal “swril” in my computer:
- tools → install packages… → packages() “swirl”
- alternatively we can do it in the console: “install.packages(“swirl”)”
- enable it through “library(“swirl”)
- Typing skip() allows you to skip a question.
- play() let’s you experiment on your own
- bye() makes swirl exit.
- main() returns to swirl main menu
- info() displays the options again.
INTERNET COURSES
- Rprogramming
- Regression Models → the basics of regression modeling with r
- statistical inference
- Exploratory Data Analysis
mean → mean(variable)
median → median(variable)
mode → table(variable)
variance → var(variable)
standard deviation → sd(variable)
assigning a name to a variable:
x <- name
dataset$variable:
- dataset → nombre documento
- variable → la columna que nos interesa
survey <- rbind(m_left, m_right, f_left, f_right)
(to stack together different tables)
barplot(table(survey(PREFER))
STEMPLOT → of the gpa values:
“stem(survey(GPA))”
BOXPLOT → of the gpa
“boxplot(survey(GPA))”
library(psych)
pf2

Vista previa parcial del texto

¡Descarga Apuntes para instalar y usar Swirl en RStudio para realizar análisis estadísticos y más Esquemas y mapas conceptuales en PDF de Análisis de Datos y Métodos Estadísticos solo en Docsity!

open the RStudio and you get a window with three subwindows:

  • console → where we type the commands
  • environment/History
  • Files/Plots/Packages CONSOLE TAB:

To indicate a “prompt”

  • how to instal “swril” in my computer:
  • tools → install packages… → packages() “swirl”
  • alternatively we can do it in the console: “install.packages(“swirl”)”
  • enable it through “library(“swirl”)
  • Typing skip() allows you to skip a question.
  • play() let’s you experiment on your own
  • bye() makes swirl exit.
  • main() returns to swirl main menu
  • info() displays the options again. INTERNET COURSES
  • Rprogramming
  • Regression Models → the basics of regression modeling with r
  • statistical inference
  • Exploratory Data Analysis mean → mean(variable) median → median(variable) mode → table(variable) variance → var(variable) standard deviation → sd(variable) assigning a name to a variable: x <- name dataset$variable:
  • dataset → nombre documento
  • variable → la columna que nos interesa survey <- rbind(m_left, m_right, f_left, f_right) (to stack together different tables) barplot(table(survey(PREFER)) STEMPLOT → of the gpa values: “stem(survey(GPA))” BOXPLOT → of the gpa “boxplot(survey(GPA))” library(psych)

describe(survey) → it will give you all statistical info of all the variables in the dataset.