SAS數(shù)據(jù)挖掘?qū)嵗?廣告投放問題eng教學(xué)文稿_第1頁
SAS數(shù)據(jù)挖掘?qū)嵗?廣告投放問題eng教學(xué)文稿_第2頁
SAS數(shù)據(jù)挖掘?qū)嵗?廣告投放問題eng教學(xué)文稿_第3頁
SAS數(shù)據(jù)挖掘?qū)嵗?廣告投放問題eng教學(xué)文稿_第4頁
SAS數(shù)據(jù)挖掘?qū)嵗?廣告投放問題eng教學(xué)文稿_第5頁
已閱讀5頁,還剩14頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、Good is good, but better carries it.精益求精,善益求善。SAS數(shù)據(jù)挖掘?qū)嵗?廣告投放問題eng-SASTutorial:EnterpriseMinerCasedescriptionSupposethatyouworkforamailorderenterprisethatsendsoutacatalogoffurnishingsandhousewareseachmonth.Aspartofanupcomingsalescampaign,youwanttodistributeaspecialcatalogthatisdevotedtofinediningandc

2、ontainskitchenware,dishes,andflatware.Itstooexpensivetosendthiscatalogtoallofyourcustomers,soyouneedtotargetthosemostlikelytobuy.Youdothisbydevelopingatargetingmodelandthenusingittoproduceanewmailinglist.Youhaveanextensiverecordofcustomerpurchases.Thedataincludesvariablesthatindicatewhethercustomers

3、boughtkitchenware,dishes,orflatwareinthepasttwoyears.ThispurchasehistoryhasbeenusedtocreatetheCUSTDET1dataset,whichcontains49variableswiththefollowinglabels:PurchaseDollarsSpentYearlyIncomeHomeValueOrderFrequencyRecencyMarriedNamePrefixAgeSexTelemarketInd.RentsApartmentOccupied0intheDINEBIN(N)=formu

4、lafieldatthebottomofthewindow.ClickOK.TheCreateVariablereappearswithdining0displayedintheFormulafield.ClickOK.ThenewvariableDINEBINappearsintheTransformVariableswindow.ClosetheTransformVariableswindow.Aconfirmationboxappears.SelectYestosaveyourchangesModifyingAttributesYounowneedtoidentifyitasthemod

5、elstarget.ThisisdonewiththeDataSetAttributesnodeDraganddroptheDataSetAttributesnodeontotheworkspacetotherightoftheinputdatasourcenode.ConnecttheTransformVariablenodetotheDataSetAttributesnode.Double-clicktheDataSetAttributesnode.TheDataSetAttributeswindowappears.ClicktheVariablestab.Scrolldownthelis

6、tofvariablesuntilDINEBINappears.Noticethegrayed-outcolumnModelRoleandthewhitecolumnNewModelRole.Grayed-outcolumnsreflecttheoriginaldatasetattributesandtheycannotbeedited.Rolereferstotheuseofeachvariable.Mostvariablesaretreatedasinputvariablesinanattempttopredictthetarget.Ifyouscrolldownthelistofvari

7、ables,youwillseethatEnterpriseMinerconsiderscertainvariablesunsuitableasinputs(e.g.,dates,orvariableswithasinglevalue).Suchvariablesaregiventherolerejected.Right-clickinthecolumnNewModelRoletotherightofthevariableDINEBIN.SelectSetNewModelRolefromthepop-upmenu.Selecttarget.Youaretryingtotargetthebuye

8、rsofdiningwares(forwhomthevariableDinebin=1).Howeverothervariablesinthedatasetcontainthesameinformation:KITCHEN,DISHES,andFLATWAREDINEBINhasvalueof1ifthecustomerhadboughtanydiningware.Itisthereforenecessarytoexcludethemfromtheanalysis(assigna“reject”status).Note:WithintheDataSetAttributesWindow,thec

9、olumnMeasurementreferstomeasurementlevel.Thisistherangeofvaluesthatisfoundineachvariable.Therearefivepossibleassignments:unary-onevalueforexample,avariablewithaparticularvaluethatwasusedtocreateadatasubsetbinary-twovaluesforexample,thevariableMARITALthatcontainsNoorYesnominal-morethantwonon-numericv

10、alues,butnoimpliedorderforexample,STATECODthatcontainsAK,AL,AR,AZ,etc.ordinal-morethantwobutnotmorethantennumericvalues,withimpliedorderforexample,NUMCARSthatcontainsvaluesfrom0to3interval-morethantennumericvaluesforexample,AMOUNTthatcontainsmanydifferentdollarvaluesAneworderforvaluesinTargetVariabl

11、eWhenyoubuildamodel,EnterpriseMinerconsidersthetargeteventtobethefirstsortedvalueofthetargetvariable.Thedefaultsortorderisascending.Butthenewtargetvariable,DINEBIN,containsvaluesof0and1,with1representingthepurchaseofanydiningwares.ThevaluesneedtobeindescendingorderforEnterpriseMinertoaimattheintende

12、dtarget.Tochangetheorderofatargetvariable:ClicktheClassVariablestabintheDataSetAttributeswindow.Scrolldownthelistofvariablesuntilthetargetvariableappears.Right-clickintheNewOrdercolumntotherightofthetaretvariable.SelectSetNewOrderfromthepop-upmenu.SelectDescending.AnewlevelInthecaseofthedatainDataMi

13、ning2003,thenewDINEBINvariablehasbeenassignedthewrongmeasurementlevel.ScrolldowntheDataSetAttributeswindowandnoticethattotherightofDINEBIN,tothecolumnMeasurement.Becausethevariablecontainsonlyvaluesof0and1,thecorrectmeasurementlevelisbinary.Right-clickintheNewMeasurementcolumntotherightofthevariable

14、DINEBIN.SelectSetNewMeasurementfromthepop-upmenu.Selectbinary.ThenewmeasurementlevelofDINEBINisreflectedinthewindow.DataPartitionYouhavecontroloverhowthepartitionsarecreated.TheDataPartitionnodeprovidesseveraloptionsDraganddroptheDataPartitionnodeontotheworkspace.ConnecttheDataSetAttributesnodetothe

15、DataPartitionnode.Double-clicktheDataPartitionnode.ItswindowappearswiththePartitiontabintheforegroundBuildaDecisionTreeModelDraganddroptheTreenodeontotheworkflow.ConnecttheDataPartitionnodetotheTreenode.Double-clicktheTreenodetoopenit.TheTreewindowappearswiththeVariablestabintheforeground.TheBasican

16、dAdvancedtabscontainasetofcriteriafortreebuildingandevaluation.Ifyouhavemadechangestothedefaultsettingsforthisnode,anewwindowpromptsyoutoenteramodelnameEnterDirect-TreeintheModelNamefield.EnterDirectMarketingDecisionTreeModelintheModelDescriptionfield.SelectOK.TheSaveModelAswindowclosesandreturnsyou

17、totheworkflow.ViewsoftreestructureRight-clicktheTreenode.SelectRunfromthepop-upmenu.Analertboxappears.SelectYestoviewyourresults.TheTreeResultswindowappearswiththeAlltabintheforeground.SelectthePlottabtoviewperformanceontrainingandvalidationsetsSelectViewTreetoviewtreestructureEvaluation/AssessmentT

18、heAssessmentnodetakesoutputfromanymodelingnodeandchecksthemodelsaccuracyagainstdatainthetestpartition.DraganddroptheAssessmentnodeontotheworkflowbelowtheTreenode.ConnecttheTreenodetotheAssessmentnode.Right-clicktheAssessmentnode.SelectRunfromthepop-upmenu.AstheDataMining2003dataisprocessedintheworkf

19、low,eachnodeinturndisplaysathickgreenborder.Whenitdoes,youarepromptedtoviewtheresults.SelectYes.TheAssessmentToolwindowappearsNote:TheAssessmentnodedoesnotanalyzeallavailabledata,itreliesonsamplingtoproducequickresults.Asaconsequence,differentliftchartsshowvariationsevenwhentheyusethesamedataLiftcha

20、rtsTheModelstaboftheAssessmentToolwindowlistsmodelsthatyouhavedefined.Scrollingtotherightdisplaysstatisticsforeachmodel.SelecttheDirect-Treemodel.SelectToolsLiftChartfromtheSASmenubar.TheLiftChartwindowappears.Thebluebaselinerepresentstheresponseratethatyouobtainbynotusingamodel,butbysendingthecatal

21、ogtoeveryoneinyourcustomerdatabase.DiagnosisChart(ConfusionMatrix)SelectToolsDiagnosischartReportresultsTheReporternodeistheEnterpriseMinertoolfordrawingadetailedmapoftheDataMiningprocess.DraganddroptheReporternodetotheworkspace.ConnecttheAssessmentnodetotheReporternode.Right-clicktheReporternode.Se

22、lectRunfromthepop-upmenu.SelectOpenwhenthereportgenerationmessageboxappears.AnextensivereportonyourminingworkflowappearsinyourdefaultWebbrowser.Applyingthemodelonadataset(Trainingorother)TheScore!nodeperformsthistask.DraganddroptheScore!nodetotheworkspace.Connectthetreenodetothescorenode.Draganddrop

23、theInputDataSourcenodeontotheworkspaceabovetheScore!node.ConnecttheInputDataSourcenodetotheScore!node.Double-clicktheInputDataSourcenode.TheInputDataSourcewindowappears.Asyoudidatthebeginningoftheworkflow,specifyadatasetastheSourceData.Fornow,selecttheEMDATAdirectory,andselectthefilethatbeginswithts

24、t(plussomerandomcharacters)tobethesourcedata.Thisisthetrainingpartition.ChangetheRoleofthedatasetfromRAWtoSCORE.ClosetheInputDataSourcewindow.Aconfirmationboxappears.SelectYestosaveyourchanges.GaininsightDouble-clicktheScore!nodethatisalreadyintheworkflow.TheScore!windowappears.Selecttheradiobuttont

25、hatisnexttoApplytrainingdatascorecodetoscoredataset.ClosetheScore!window.Aconfirmationboxappears.SelectYestosaveyourchanges.DraganddroptheInsightnodeontotheworkspacebelowtheScore!node.ConnecttheScore!nodetotheInsightnodeDouble-clicktheInsightnode.TheInsightSettingswindowappears.ClicktheSelectbuttont

26、hatisnexttotheDatasetfield.TheImportsMapwindowappears.Youneedtoclickthroughthehierarchicallistofdatasetstoidentifythedatasetthatisassociatedwiththescoredata.ThisdatasettypicallyhasanSDprefix,followedbyastringofrandomalphanumericcharacters.FindthefileClicktheplussign(+)totheleftofScore!Applyinthedata

27、setlist.ItexpandstoshowSAS_DATA_SETS.Clicktheplussign(+)totheleftofSAS_DATA_SETS.Itexpandstoshowfourdatasets.SelectthedatasetwhosefilerefbeginswiththelettersSD.TheRoleandDescriptionfieldsidentifyitasscoredata.ClicktheOKbutton.YoureturntotheDatatab.IntheInsightbasedonfield,clicktheradiobuttonthatisnexttoEntiredataset.ClosetheI

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論