运行多元回归时,如此处所示(数据来自2014年和2015年的NHL季节,并用于预测胜利):
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('game', {
url: "/game",
templateUrl: "templates/game.html",
})
.state('home', {
url: "/home",
templateUrl: "templates/home.html",
controller: "HomeCtrl"
})
// if none of the above states are matched, use this as the fallback
$urlRouterProvider.otherwise('/home');
});
并产生以下结果:
TwoPredictorModel<-lm(Wins~Time.Shorthanded+Shots.per.Game, data=dat)
summary(TwoPredictorModel)
如何在R中提取T值以将它们放入矢量?
答案 0 :(得分:0)
将其从摘要中拉出来,例如
summary(lm(mpg~wt+hp, mtcars))$coefficients[,"t value"]