欢迎来到天天文库
浏览记录
ID:47877492
大小:177.47 KB
页数:5页
时间:2019-11-16
《sas#2–decisiontrees-templefoxmis:sas#2–决策树-庙福克斯mis》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、WilliamTrostThid:914453471MIS2501-Assignment5-SAS#2-DecisionTreesGettingDataReadyinSAS1.InitialDataExplorationAsupermarketisofferinganewlineoforganicproducts.Thesupermarket^managementwantstodeterminewhichcustomersarelikelytopurchasetheseproducts.Thesupermarkethasa
2、customerloyaltyprogram.Asaninitialbuyerincentiveplan,thesupermarketprovidedcouponsfortheorganicproductstoalloftheloyaltyprogramparticipantsandcollecteddatathatincludeswhetherthesecustomerspurchasedanyoftheorganicproducts.TheORGANICSdatasetcontains13variablesandove
3、r22,00()observations.Thevariablesinthedatasetareshownbelowwiththeappropriaterolesandlevels:NameModelRoleMeasurementLevelDescriptionIDIDNominalCustomerloyaltyidentificationnumberDemAfflInputIntervalAffluencegradeonascalefrom1to30DemAgeInputIntervalAge,inyearsDemClu
4、sterRejectedNominalTypeofresidentialneighborhoodDemClusterGroupInputNominalNeighborhoodgroupDemGenderInputNominalM=male,F=female,U=unknownDemRegionInputNominalGeographicregionDemTVRegInputNominalTelevisionregionPromCIassInputNominalLoyaltystatus:tin,silver,gold,or
5、platinumPromSpendInputIntervalTotalamountspentPromTimeInputIntervalTimeasloyaltycardmemberTargetBuyTargetBinaryOrganicspurchased?1=Yes,0=NoTargetAmtRejectedIntervalNumberoforganicproductspurchased/Althoughtwotargetvariablesarelisted,thisexerciseconcentratesonthebi
6、naryvariableTargetBuy.a.CreateanewdiagramnamedOrganics.b.DefinethedatasetAAEM61.ORGANICSasadatasourcefortheproject.1)Settherolesfortheanalysisvariablesasshownabove・(YoucangobackandmodifyvariablerolesevenafteryoucompletethewizardbyrightclickingontheOrganicsdatasou
7、rceandselectingEditVariables.ThevariableDemClusterGroupcontainscollapsedlevelsofthevariableDemCluster.Presumethat,basedonpreviousexperienceyoubelievethatDemClusterGroupissufficientforthistypeofmodelingeffort・SetthemodelroleforDemClustertoRejected.2)Examinethedistr
8、ibutionofthetargetvariableTargetBuy.YoucandothisbyclickingonthatvariableintheColumnMetadata(step6of9inthewizard)andthenclickingtheExplorebutton.Whatisth
此文档下载收益归作者所有