(完整word版)统计建模与R软件课后答案.docxVIP

  • 285
  • 0
  • 约2.32万字
  • 约 43页
  • 2020-11-12 发布于天津
  • 举报

(完整word版)统计建模与R软件课后答案.docx

第二章 2.1 x-c(1,2,3);y-c(4,5,6) e-c(1,1,1) z-2*x+y+e;z 7 10 13 z1-crossprod(x,y);z1 [,1] [1,] 32 z2-outer(x,y);z2 [,1] [,2] [,3] [1,] 4 5 6 [2,] 8 10 12 [3,] 12 15 18 2.2 (1) A-matrix(1:20,nrow=4);B-matrix(1:20,nrow=4,byrow=T) C-A+B;C D-A%*%B;D E-A*B;E F-A[1:3,1:3] G-B[,-3] 2.3 x-c(rep(1,5),rep(2,3),rep(3,4),rep(4,2));x 2.4 H-matrix(nrow=5,ncol=5) for (i in 1:5) + for(j in 1:5) + H[i,j]-1/(i+j-1) ( 1) det(H) ( 2) solve(H) ( 3) eigen(H) 2.5 studentdata^data.frame(姓名=c(张三,李四,王五,赵六,丁一) + 性别二c (女,男,女,男,女),年龄二c(14,15,16,14,15), + 身高二c(156,165,157,162,159),体重二c(42,49,41.5,52,45.5)) 2.6 w

文档评论(0)

1亿VIP精品文档

相关文档