/
Title stata Title stata

Title stata - PDF document

min-jolicoeur
min-jolicoeur . @min-jolicoeur
Follow
425 views
Uploaded On 2014-10-28

Title stata - PPT Presentation

com break Suppress Break key Syntax Description Remarks and examples Also see Syntax nobreak stata command break stata command Typical usage is nobreak capture noisily break Description nobreak t ID: 8200

com break Suppress Break

Share:

Link:

Embed:

Download Presentation from below link

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.


Presentation Transcript

2break—SuppressBreakkey Example1Youarewritingaprogramandfollowingalltheguidelineslistedabove.Inparticular,youareusingtemporaryvariables.Atapointinyourprogram,however,youwishtolisttherstvevaluesofthetemporaryvariable.Youwouldlike,temporarily,togivethevariableaprettyname,soyoutemporarilyrenameit.IftheuserweretopressBreakduringtheperiod,thevariablewouldberenamed;however,Statawouldnotknowtodropit,anditwouldbeleftbehindintheuser'sdata.Youwishtoavoidthis.Inthecodefragmentbelow,`myv'isthetemporaryvariable:nobreak{rename`myv'ResultlistResultin1/5renameResult`myv'}Itwouldnotbeappropriatetocodethefragmentasnobreakrename`myv'ResultnobreaklistResultin1/5nobreakrenameResult`myv'becausetheusermightpressBreakduringtheperiodsbetweenthecommands. Alsosee[P]capture—Capturereturncode[P]continue—Breakoutofloops[P]quietly—QuietlyandnoisilyperformStatacommand[P]varabbrev—Controlvariableabbreviation[U]9TheBreakkey