File:Reg ls dgr qq resid t edat pad.svg

Original file(SVG file, nominally 630 × 630 pixels, file size: 65 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
Català: Diagrama q-q dels residuals tipificats d'un model de regressió lineal
Date
Source Own work
Author Pep Roca
 
This W3C-unspecified chart was created with R.

R source code edit

# Es crea la base de dades amb nombres aleatoris:
set.seed(1)
N         = 100
U         = rnorm(N)
EDAT      = 50 + rnorm(N)
PAD       = 20 + EDAT + U                      # Pressió arterial diastòlica
DADES_RLS = data.frame(PAD, EDAT)              # Es crea la taula de dades

# Regressío linal simple:
PAD_LM = lm(PAD ~ EDAT, data = DADES_RLS)      # S'estima el model de regressió lineal
PAD_LM_RESID_E = rstandard(PAD_LM)             # Es calculen els residu tipificats
svg("gra/reg_ls_dgr_qq_resid_t_edat_pad.svg")  # Desar el diagrama en un fitxer tipus svg
qqnorm(PAD_LM_RESID_E,                         # Crear el diagrama q-q
       ylab="Residus tipificats",              # Etiqueta de l'eix de les y
       xlab="Quantils de la llei normal",      # Etiqueta de l'eix de les x
       main="Diagrama q-q de normalitat")      # Títol del gràfic
qqline(PAD_LM_RESID_E)                         # S'afegeix una línia de referència
dev.off()                                      # Tancar i desar el diagrama

Licensing edit

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:07, 23 June 2014Thumbnail for version as of 16:07, 23 June 2014630 × 630 (65 KB)Pep Roca (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata