File:Reg ls dgr qq resid t edat pad.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 600 × 600 pixels. Other resolutions: 240 × 240 pixels | 480 × 480 pixels | 768 × 768 pixels | 1,024 × 1,024 pixels | 2,048 × 2,048 pixels | 630 × 630 pixels.
Original file (SVG file, nominally 630 × 630 pixels, file size: 65 KB)
File information
Structured data
Captions
Summary
[edit]DescriptionReg ls dgr qq resid t edat pad.svg |
Català: Diagrama q-q dels residuals tipificats d'un model de regressió lineal |
Date | |
Source | Own work |
Author | Pep Roca |
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:
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/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 16:07, 23 June 2014 | 630 × 630 (65 KB) | Pep Roca (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on ca.wikibooks.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 504pt |
---|---|
Height | 504pt |