com clear Clear memory Syntax Description Remarks and examples Also see Syntax clear clear mata results matrix programs ado clear all Description clear by itself removes data and value labels from memory an ID: 8606
Download Pdf The PPT/PDF document "Title stata" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
2clearClearmemory clearallandclear*aresynonyms.Theyremovealldata,valuelabels,matrices,scalars,constraints,clusters,storedresults,sersets,andMatafunctionsandobjectsfrommemory.Theyalsocloseallopenlesandpostles,cleartheclasssystem,closeanyopenGraphwindowsanddialogboxes,dropallprogramsfrommemory,andresetalltimerstozero.Theyareequivalenttotyping.version13.drop_all(see[D]drop).labeldrop_all(see[D]label).matrixdrop_all(see[P]matrixutility).scalardrop_all(see[P]scalar).constraintdrop_all(see[R]constraint).clusterdrop_all(see[MV]clusterutility).fileclose_all(see[P]le).postutilclear(see[P]postle)._returndrop_all(see[P]_return).discard(see[P]discard).programdrop_all(see[P]program).timerclear(see[P]timer).mata:mataclear(see[M-3]mataclear)Remarksandexamplesstata.comYoucancleartheentiredatasetwithoutaffectingmacrosandprogramsbytypingclear.Youcanalsotypeclearall.Thiscommandhasthesameresultasclearbyitselfbutalsoclearsmatrices,scalars,constraints,clusters,storedresults,sersets,Mata,theclasssystem,businesscalendars,andprograms;closesallopenlesandpostles;closesallopenGraphwindowsanddialogboxes;andresetsalltimerstozero. Example1Weloadthebpwidedatasettocorrectamistakeinthedata..usehttp://www.stata-press.com/data/r13/bpwide(fictionalbloodpressuredata).listin1/5 patientsexagegrpbp_bef~ebp_after 1. 1Male30-45143153 2. 2Male30-45163170 3. 3Male30-45153168 4. 4Male30-45153142 5. 5Male30-45146141 .replacebp_after=145in3(1realchangemade)Wemadeanothermistake.Wemeanttochangethevalueofbp afterinobservation4.Itiseasiesttobeginagain..clear.usehttp://www.stata-press.com/data/r13/bpwide(fictionalbloodpressuredata)