{"id":3701,"date":"2026-10-14T18:01:05","date_gmt":"2026-10-14T18:01:05","guid":{"rendered":"http:\/\/french.arabpsychology.com\/statistics\/comment-utiliser-distribution-gamma-dans-r-exemples\/"},"modified":"2026-10-14T18:01:05","modified_gmt":"2026-10-14T18:01:05","slug":"comment-utiliser-distribution-gamma-dans-r-exemples","status":"publish","type":"psych_stat","link":"https:\/\/french.arabpsychology.com\/?psych_stat=comment-utiliser-distribution-gamma-dans-r-exemples","title":{"rendered":"Comment utiliser la distribution Gamma dans R (avec des exemples)"},"content":{"rendered":"<p>library(ggplot2)<\/p>\n<p>ggplot(data.frame(x = c(0, 1200)), aes(x = x)) +<br \/>\n  stat_function(fun = dgamma, args = list(shape = 2, rate = 0.005),<br \/>\n                aes(color = \u00ab\u00a0k = 2 (Asym\u00e9trie s\u00e9v\u00e8re)\u00a0\u00bb), linewidth = 1.2) +<br \/>\n  stat_function(fun = dgamma, args = list(shape = 4, rate = 0.010),<br \/>\n                aes(color = \u00ab\u00a0k = 4 (Asym\u00e9trie mod\u00e9r\u00e9e)\u00a0\u00bb), linewidth = 1.2) +<br \/>\n  stat_function(fun = dgamma, args = list(shape = 10, rate = 0.025),<br \/>\n                aes(color = \u00ab\u00a0k = 10 (Quasi-normalit\u00e9)\u00a0\u00bb), linewidth = 1.2) +<br \/>\n  scale_color_manual(name = \u00ab\u00a0Param\u00e9trisation\u00a0\u00bb,<br \/>\n                     values = c(\u00ab\u00a0k = 2 (Asym\u00e9trie s\u00e9v\u00e8re)\u00a0\u00bb = \u00ab\u00a0#D95F02\u00a0\u00bb,<br \/>\n                                \u00ab\u00a0k = 4 (Asym\u00e9trie mod\u00e9r\u00e9e)\u00a0\u00bb = \u00ab\u00a0#7570B3\u00a0\u00bb,<br \/>\n                                \u00ab\u00a0k = 10 (Quasi-normalit\u00e9)\u00a0\u00bb = \u00ab\u00a0#1B9E77\u00a0\u00bb)) +<br \/>\n  labs(x = \u00ab\u00a0Temps de r\u00e9action (ms)\u00a0\u00bb,<br \/>\n       y = \u00ab\u00a0Densit\u00e9 de probabilit\u00e9\u00a0\u00bb,<br \/>\n       title = \u00ab\u00a0\u00c9volution morphologique de la loi Gamma \u00e0 moyenne constante\u00a0\u00bb,<br \/>\n       subtitle = \u00ab\u00a0Esp\u00e9rance math\u00e9matique th\u00e9orique fix\u00e9e \u00e0 E(X) = 400 ms\u00a0\u00bb) +<br \/>\n  theme_classic(base_size = 13) +<br \/>\n  theme(legend.position = \u00ab\u00a0top\u00a0\u00bb,<br \/>\n        plot.title = element_text(face = \u00ab\u00a0bold\u00a0\u00bb, size = 14),<br \/>\n        axis.title = element_text(face = \u00ab\u00a0bold\u00a0\u00bb))<\/p>\n<figure class=\"wpt-preserved-image\"><img fetchpriority=\"high\" decoding=\"async\" src=\"http:\/\/french.arabpsychology.com\/wp-content\/uploads\/2026\/09\/gamma2.png\" alt=\"\" \/><\/figure>\n<figure class=\"wpt-preserved-image\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/french.arabpsychology.com\/wp-content\/uploads\/2026\/09\/gamma3.png\" alt=\"\" \/><\/figure>\n<figure class=\"wpt-preserved-image\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/french.arabpsychology.com\/wp-content\/uploads\/2026\/09\/gamma4.png\" alt=\"\" \/><\/figure>\n<figure class=\"wpt-preserved-image\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/french.arabpsychology.com\/wp-content\/uploads\/2026\/09\/gamma1.png\" alt=\"\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Guide acad\u00e9mique complet sur la distribution Gamma dans R : mod\u00e9lisation des temps d&rsquo;attente, fonctions dgamma, pgamma, qgamma, rgamma et exemples empiriques.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","categories":[2141,4136],"tags":[5702,5695,4061,16,2910],"class_list":["post-3701","psych_stat","type-psych_stat","status-publish","hentry","category-methodologie-quantitative","category-statistiques-en-r","tag-dgamma-r","tag-distribution-gamma","tag-langage-r","tag-psychometrie","tag-temps-de-reaction"],"_links":{"self":[{"href":"https:\/\/french.arabpsychology.com\/index.php?rest_route=\/wp\/v2\/psych_stat\/3701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/french.arabpsychology.com\/index.php?rest_route=\/wp\/v2\/psych_stat"}],"about":[{"href":"https:\/\/french.arabpsychology.com\/index.php?rest_route=\/wp\/v2\/types\/psych_stat"}],"author":[{"embeddable":true,"href":"https:\/\/french.arabpsychology.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/french.arabpsychology.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3701"}],"version-history":[{"count":1,"href":"https:\/\/french.arabpsychology.com\/index.php?rest_route=\/wp\/v2\/psych_stat\/3701\/revisions"}],"predecessor-version":[{"id":16532,"href":"https:\/\/french.arabpsychology.com\/index.php?rest_route=\/wp\/v2\/psych_stat\/3701\/revisions\/16532"}],"wp:attachment":[{"href":"https:\/\/french.arabpsychology.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/french.arabpsychology.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/french.arabpsychology.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}