五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

R語言代做編程輔導(dǎo)IS4240 Business Intelligence Systems(附答案)

2023-07-11 15:49 作者:拓端tecdat  | 我要投稿

全文鏈接:https://tecdat.cn/?p=33173

Learning Objectives

·?????? Use the R environment to do data exploration and data preparation.

Submission Information

·?????? This assignment contributes 5% to the final course grade. The total marks for this assignment is 20.

·?????? Late submission will be penalized.

·?????? Upload the softcopy (a single pdf or doc/docx) to IVLE.

·???????Please ensure that you have written your name and matric number in the document.

1.???? This question will be based on the Heart Disease dataset (processed.va.data). The dataset consists of 200 instances, each having 14 numeric attributes. The description of the dataset can be found in?http://archive.ics.uci.edu/ml/machine-learning-databases/heart-disease/heart-disease.names?(Long Beach VA)

a)??? Provide the R codes for loading the dataset into a variable heart. The attributes should be given reasonable attribute names based on the description given above. Ensure that all the attributes are of numeric (or integer) type.
(Hint: you should be able to easily convert missing values to be of NA type by using an appropriate function argument) (3 marks)

colnames(heart)=c("age","sex","cp","trestbps","chol","fbs","restecg","thalach","exang","oldpeak","slope","ca","thal","num")?for(i in 1:nrow(heart)){ heart[i,which(heart[i,]=="?")]=NA}

a)??? Provide the R codes for getting the number of missing values for each attribute. Fill in the table below. (5 marks)

for(i in 1:ncol(heart)){?sumna[i]=0?for(j in 1:nrow(heart)){?if(is.na(heart[j,i])) sumna[i]=sumna[i]+1;Attribute****Number of missing values****age0sex0cp0trestbps56chol7fbs7restecg0thalach53exang53oldpeak56slope102ca198thal166num0

a)??? Based on the number of missing values for each attribute, discuss one potential issue if we were to remove instances with one or more missing attributes.
(4 mark)

for(i in 1:nrow(heart)){?sum[i]=0?for(j in 1:ncol(heart)){

a)??? Instead of removing instances with one or more missing attributes, propose an alternative approach for handling this problem? (4 mark)

sum=rep(1,ncol(heart))?for(i in 1:ncol(heart)){??? sum[i]=0 ; ? ? ? ?

a)??? Provide the R codes for generating the correlation matrix for the attributes: age, sex, cp, restecg, num. Show the correlation matrix. (4 mark)

cor(heart[c("age", "sex", "cp", "restecg", "num")])


R語言代做編程輔導(dǎo)IS4240 Business Intelligence Systems(附答案)的評論 (共 條)

分享到微博請遵守國家法律
昌黎县| 康保县| 上栗县| 祁阳县| 苏尼特左旗| 海晏县| 神池县| 巴彦淖尔市| 政和县| 凤山县| 青州市| 湖南省| 南召县| 凌海市| 宜兰市| 筠连县| 伊金霍洛旗| 陆河县| 化隆| 赤水市| 克东县| 乐清市| 桐乡市| 色达县| 准格尔旗| 定边县| 阳山县| 大新县| 甘德县| 麻江县| 阿合奇县| 会同县| 尉犁县| 锡林郭勒盟| 咸宁市| 邢台市| 巴林左旗| 进贤县| 资阳市| 桃园市| 独山县|