ä¿¡é ¼åºéã¨ã¯ãªãããã¨ããã®ãã¡ã¢ãã¦ãããã¨æã£ã¦ãç°¡åãªãã¼ã¿ã§å帰åæãè¡ã£ã¦å³ãã¤ããããã¨æã£ãããRã®predict()é¢æ°ã®ä½¿ãæ¹ã«è½ã¨ãç©´ããã£ãã®ã§å¾©ç¿ãã¦ãã¡ã¢â¦â¦ã ã¨ããããåå帰åæãã Rã®ç·´ç¿ç¨ãã¼ã¿ã»ãããcarsããã¤ããã¾ãã*1 è»ã®ã¹ãã¼ãã¨å¶åè·é¢ï¼or åæ¢è·é¢ï¼ã§ãããã > head(cars) # Rã®ç·´ç¿ç¨ãã¼ã¿ã»ãããcarsãã®ä¸èº« speed dist 1 4 2 2 4 10 3 7 4 4 7 22 5 8 16 6 9 10 ç¸é¢ä¿æ°ã¨æ£å¸å³ãã¿ã¦ããã¾ãã > cor(cars$speed, cars$dist) [1] 0.8068949 > plot(cars) ã¨ããããå帰åæãã¾ãã # lm()ã§å帰åæ > cars.lm <- lm(dist ~ speed, data=cars) > summary(car
{{#tags}}- {{label}}
{{/tags}}