{"id":3076,"date":"2021-12-12T14:43:04","date_gmt":"2021-12-12T14:43:04","guid":{"rendered":"https:\/\/ricovictor.com\/?p=3076"},"modified":"2026-01-29T21:44:42","modified_gmt":"2026-01-29T21:44:42","slug":"modelo-de-regresion-lineal-simple-en-r","status":"publish","type":"post","link":"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/","title":{"rendered":"Modelo de Regresi\u00f3n Lineal Simple en R"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3076\" class=\"elementor elementor-3076\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-517a1a6e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"517a1a6e\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-72a896fb\" data-id=\"72a896fb\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4aa70787 elementor-widget elementor-widget-text-editor\" data-id=\"4aa70787\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>En el siguiente este video hago ejemplos con el <a href=\"https:\/\/ricovictor.com\/index.php\/regresion-lineal-simple-desde-0\/\">Modelo de Regresi\u00f3n Lineal Simple<\/a> en R. Debajo del v\u00eddeo puedes copiar el c\u00f3digo en R usado.\u00a0<\/p><p>Este v\u00eddeo es la Clase 8 de una serie de videos sobre el Modelo de Regresi\u00f3n Lineal Simple que puedes ver gratis <a href=\"https:\/\/ricovictor.com\/index.php\/regresion-lineal-simple-desde-0\/\">aqu\u00ed<\/a>.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1f6243f7 elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"1f6243f7\" data-element_type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<div class=\"elementor-icon\">\n\t\t\t<i aria-hidden=\"true\" class=\"far fa-hand-point-down\"><\/i>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4a2604f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4a2604f\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-161ef638\" data-id=\"161ef638\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4cdf1881 elementor-widget elementor-widget-video\" data-id=\"4cdf1881\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=j_wEX_8AJ48&amp;t=798s&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-41dc165 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"41dc165\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8621079\" data-id=\"8621079\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2aedc3d elementor-widget elementor-widget-text-editor\" data-id=\"2aedc3d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><em><strong>C\u00d3DIGO EN R DEL V\u00cdDEO<\/strong><\/em><\/p><p><br \/>#Video Regresi\u00f3n Lineal Simple<\/p><p>\u00a0<\/p><p><br \/>#install.packages(\u00abquantmod\u00bb)<br \/>library(quantmod)<br \/>#install.packages(\u00abtseries\u00bb)<br \/>library(tseries)<br \/>#install.packages(\u00abfImport\u00bb)<br \/>library(fImport)<br \/>#install.packages(\u00abforecast\u00bb)<br \/>library(forecast)<br \/>#install.packages(\u00abTSA\u00bb)<br \/>library(TSA)<br \/>#install.packages(\u00abQuandl\u00bb)<br \/>library(Quandl)<br \/>#install.packages(\u00ablmtest\u00bb)<br \/>library(lmtest)<br \/>#install.packages(\u00abstats\u00bb)<br \/>library(stats)<\/p><p><br \/>#1. Descargamos las variables que vamos a usar<\/p><p>getSymbols(\u00abEXUSEU\u00bb,src=\u00bbFRED\u00bb)<br \/>plot(EXUSEU,type=\u00bbl\u00bb)<\/p><p>getSymbols(\u00abUNRATE\u00bb,src=\u00bbFRED\u00bb) #Unemployment Rate<br \/>getSymbols(\u00abFEDFUNDS\u00bb,src=\u00bbFRED\u00bb) #tasa interes fondos federales<\/p><p><br \/>#getSymbols(\u00abCPIAUCSL\u00bb,src=\u00bbFRED\u00bb) #Consumer Price Index<\/p><p><br \/>EUR_USD= EXUSEU[\u00ab2000-01::2021-10\u00bb]<\/p><p>#Paro_usa=UNRATE[\u00ab2015-01::2021-10\u00bb]<\/p><p>tas_int&lt;-FEDFUNDS[\u00ab2000-01::2021-10\u00bb]<\/p><p>Modelo &lt;- lm(EUR_USD~tas_int)<\/p><p>summary(Modelo)<\/p><p><br \/>#########################<\/p><p>#EJEMPLO 1<\/p><p>#Tenemos la siguiente muestra sobre arrendatarios de aparcamiento<br \/># de una ciudad<\/p><p>#Alquiler anual<\/p><p>alquiler &lt;- c(4000,4500,4500,6500,6000,5000)<br \/>m2&lt;- c(12,15,14,20,18,14)<\/p><p># \u00bfque parte de la variaci\u00f3n en el precio est\u00e1 explicado por la superficie?<br \/>#92%<\/p><p>dat_r &lt;- data.frame(alquiler,m2)<\/p><p>plot(dat_r$alquiler,type=\u00bbl\u00bb)<br \/>plot(dat_r$m2,type=\u00bbl\u00bb)<\/p><p>#dispersion<\/p><p>plot(x = dat_r$m2, y = dat_r$alquiler)<\/p><p># modelo <br \/>#y #x <br \/>ejem_1 &lt;- lm(dat_r$alquiler~dat_r$m2)<br \/>summary(ejem_1)<\/p><p>abline ( ejem_1, col = \u00abmagenta\u00bb )<\/p><p># \u00bf estimaci\u00f3n si m2 es 16?<\/p><p>ejem_1$coefficients<\/p><p>183.908 + 316.092*16<\/p><p>#5241.38 si 16<\/p><p>###<\/p><p>#EJEMPLO 2<\/p><p># explicar el beneficio en millones de pts de una empresa<br \/># en funcion del su presupuesto en publicidad<\/p><p><br \/>beneficio &lt;- c(13,14,12,14,15)<br \/>Publicidad &lt;-c(5,9,5,8,9)<\/p><p>dat_r2 &lt;- data.frame(beneficio,Publicidad)<\/p><p>#dispersion<\/p><p>plot(x = dat_r2$Publicidad, y = dat_r2$beneficio)<br \/>#y<br \/>ejem_2 &lt;- lm(dat_r2$beneficio~dat_r2$Publicidad)<\/p><p>summary(ejem_2)<br \/>abline ( ejem_2, col = \u00abred\u00bb )<\/p><p>ejem_2$coefficients<\/p><p>10 + 0.5*12<\/p><p>#con 12 mill de publicidad ganariamos 16<\/p><p><br \/>### EJEMPLO 3<\/p><p>Prod_trigo &lt;- c(30, 28, 32, 25, 25, 25, 22, 24, 35, 40)<br \/>Precio_harina&lt;-c(25,30 ,27, 40, 42,40, 50 ,45 ,30, 25)<\/p><p>dat_r3 &lt;- data.frame(Precio_harina,Prod_trigo)<\/p><p>ejem_3 &lt;- lm(dat_r3$Precio_harina~dat_r3$Prod_trigo)<br \/>summary(ejem_3)<\/p><p><br \/>confint(ejem_3)<br \/>confint(ejem_3, level = 0.90)<\/p><p><br \/># tabla ANOVA en R<\/p><p>anova(ejem_1)<br \/>anova(ejem_2)<\/p><p>##################<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>En el siguiente este video hago ejemplos con el Modelo de Regresi\u00f3n Lineal Simple en R. Debajo del v\u00eddeo puedes copiar el c\u00f3digo en R usado.\u00a0 Este v\u00eddeo es la Clase 8 de una serie de videos sobre el Modelo de Regresi\u00f3n Lineal Simple que puedes ver gratis aqu\u00ed. https:\/\/www.youtube.com\/watch?v=j_wEX_8AJ48&#038;t=798s C\u00d3DIGO EN R DEL V\u00cdDEO &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/\"> <span class=\"screen-reader-text\">Modelo de Regresi\u00f3n Lineal Simple en R<\/span> Leer m\u00e1s &raquo;<\/a><\/p>\n","protected":false},"author":19,"featured_media":3080,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[2,13],"tags":[96],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Modelo de Regresi\u00f3n Lineal Simple en R - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Modelo de Regresi\u00f3n Lineal Simple en R - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\" \/>\n<meta property=\"og:description\" content=\"En el siguiente este video hago ejemplos con el Modelo de Regresi\u00f3n Lineal Simple en R. Debajo del v\u00eddeo puedes copiar el c\u00f3digo en R usado.\u00a0 Este v\u00eddeo es la Clase 8 de una serie de videos sobre el Modelo de Regresi\u00f3n Lineal Simple que puedes ver gratis aqu\u00ed. https:\/\/www.youtube.com\/watch?v=j_wEX_8AJ48&#038;t=798s C\u00d3DIGO EN R DEL V\u00cdDEO &hellip; Modelo de Regresi\u00f3n Lineal Simple en R Leer m\u00e1s &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/\" \/>\n<meta property=\"og:site_name\" content=\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-12T14:43:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-29T21:44:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2021\/12\/victor-a.rico_.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Victor A.Rico\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Victor A.Rico\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/\"},\"author\":{\"name\":\"Victor A.Rico\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae\"},\"headline\":\"Modelo de Regresi\u00f3n Lineal Simple en R\",\"datePublished\":\"2021-12-12T14:43:04+00:00\",\"dateModified\":\"2026-01-29T21:44:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/\"},\"wordCount\":391,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ricovictor.com\/#organization\"},\"keywords\":[\"Regresion Lineal\"],\"articleSection\":[\"Econometr\u00eda y Estad\u00edstica\",\"R studio\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/\",\"url\":\"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/\",\"name\":\"Modelo de Regresi\u00f3n Lineal Simple en R - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\",\"isPartOf\":{\"@id\":\"https:\/\/ricovictor.com\/#website\"},\"datePublished\":\"2021-12-12T14:43:04+00:00\",\"dateModified\":\"2026-01-29T21:44:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/ricovictor.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Modelo de Regresi\u00f3n Lineal Simple en R\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ricovictor.com\/#website\",\"url\":\"https:\/\/ricovictor.com\/\",\"name\":\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/ricovictor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ricovictor.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ricovictor.com\/#organization\",\"name\":\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\",\"url\":\"https:\/\/ricovictor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ricovictor.com\/wp-content\/uploads\/2026\/02\/cropped-ChatGPT-Image-4-feb-2026-12_41_28.png\",\"contentUrl\":\"https:\/\/ricovictor.com\/wp-content\/uploads\/2026\/02\/cropped-ChatGPT-Image-4-feb-2026-12_41_28.png\",\"width\":1402,\"height\":474,\"caption\":\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\"},\"image\":{\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae\",\"name\":\"Victor A.Rico\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4edf55780c0c232271ecbcb12fae9460?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4edf55780c0c232271ecbcb12fae9460?s=96&d=mm&r=g\",\"caption\":\"Victor A.Rico\"},\"url\":\"https:\/\/ricovictor.com\/index.php\/author\/granada_26_wp\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Modelo de Regresi\u00f3n Lineal Simple en R - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/","og_locale":"es_ES","og_type":"article","og_title":"Modelo de Regresi\u00f3n Lineal Simple en R - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","og_description":"En el siguiente este video hago ejemplos con el Modelo de Regresi\u00f3n Lineal Simple en R. Debajo del v\u00eddeo puedes copiar el c\u00f3digo en R usado.\u00a0 Este v\u00eddeo es la Clase 8 de una serie de videos sobre el Modelo de Regresi\u00f3n Lineal Simple que puedes ver gratis aqu\u00ed. https:\/\/www.youtube.com\/watch?v=j_wEX_8AJ48&#038;t=798s C\u00d3DIGO EN R DEL V\u00cdDEO &hellip; Modelo de Regresi\u00f3n Lineal Simple en R Leer m\u00e1s &raquo;","og_url":"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/","og_site_name":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","article_published_time":"2021-12-12T14:43:04+00:00","article_modified_time":"2026-01-29T21:44:42+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/ricovictor.com\/wp-content\/uploads\/2021\/12\/victor-a.rico_.png","type":"image\/png"}],"author":"Victor A.Rico","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Victor A.Rico","Tiempo de lectura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/#article","isPartOf":{"@id":"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/"},"author":{"name":"Victor A.Rico","@id":"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae"},"headline":"Modelo de Regresi\u00f3n Lineal Simple en R","datePublished":"2021-12-12T14:43:04+00:00","dateModified":"2026-01-29T21:44:42+00:00","mainEntityOfPage":{"@id":"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/"},"wordCount":391,"commentCount":0,"publisher":{"@id":"https:\/\/ricovictor.com\/#organization"},"keywords":["Regresion Lineal"],"articleSection":["Econometr\u00eda y Estad\u00edstica","R studio"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/","url":"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/","name":"Modelo de Regresi\u00f3n Lineal Simple en R - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","isPartOf":{"@id":"https:\/\/ricovictor.com\/#website"},"datePublished":"2021-12-12T14:43:04+00:00","dateModified":"2026-01-29T21:44:42+00:00","breadcrumb":{"@id":"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ricovictor.com\/index.php\/2021\/12\/12\/modelo-de-regresion-lineal-simple-en-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/ricovictor.com\/"},{"@type":"ListItem","position":2,"name":"Modelo de Regresi\u00f3n Lineal Simple en R"}]},{"@type":"WebSite","@id":"https:\/\/ricovictor.com\/#website","url":"https:\/\/ricovictor.com\/","name":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","description":"","publisher":{"@id":"https:\/\/ricovictor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ricovictor.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/ricovictor.com\/#organization","name":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","url":"https:\/\/ricovictor.com\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/ricovictor.com\/#\/schema\/logo\/image\/","url":"https:\/\/ricovictor.com\/wp-content\/uploads\/2026\/02\/cropped-ChatGPT-Image-4-feb-2026-12_41_28.png","contentUrl":"https:\/\/ricovictor.com\/wp-content\/uploads\/2026\/02\/cropped-ChatGPT-Image-4-feb-2026-12_41_28.png","width":1402,"height":474,"caption":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas"},"image":{"@id":"https:\/\/ricovictor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae","name":"Victor A.Rico","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/ricovictor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4edf55780c0c232271ecbcb12fae9460?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4edf55780c0c232271ecbcb12fae9460?s=96&d=mm&r=g","caption":"Victor A.Rico"},"url":"https:\/\/ricovictor.com\/index.php\/author\/granada_26_wp\/"}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3076"}],"collection":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/comments?post=3076"}],"version-history":[{"count":6,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3076\/revisions"}],"predecessor-version":[{"id":3083,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3076\/revisions\/3083"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/media\/3080"}],"wp:attachment":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/media?parent=3076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/categories?post=3076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/tags?post=3076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}