Exercises On The Internet For Researchers And Students To Learn Stata

1y ago
4 Views
1 Downloads
3.32 MB
20 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Tripp Mcmullen
Transcription

Exercises on the Internet for researchers and studentsto learn StataM. Escobar(modesto@usal.es)Universidad de Salamanca11th Spanish Stata Users Group meetingBarcelona, 24th October-2018Modesto Escobar (USAL)Exercises on the Internet24th October 20181 / 20

IntroductionGoalsIntroductionGoalsOne of the best way to learn to use a software is through examplesand exercises.Previously, we could deliver an exercises notebook to our students.But nowadays, students work increasingly on the Internet.That is a good reason to use web pages to give them lessons andexamples of using programs.ExamplesStata blog page: https://blog.stata.com/UCLA IDRE: https://stats.idre.ucla.edu/stata/We can find another examples ng-stata/However, we can write our own web pages easily with a few newStata commands.Modesto Escobar (USAL)Exercises on the Internet24th October 20182 / 20

ata results could be saved using log on ASCII (UTF-8) format.By default this command produces a special format called .smcl (Statamark-up control language).Other output ways.Since the 13th version of Stata, results could be sent to an Excel filethrough the command putexcel.New featuresSince the 15th version of Stata, results could be sent to a .doc file(putdocx) and to a .pdf file (putpdf).There is also another command that converts markdown files into.html files.Modesto Escobar (USAL)Exercises on the Internet24th October 20183 / 20

MarkdownDefinitionMarkdownDefinitionMarkdown is a plain text formatting syntax that can be converted into a.html format through the convenient program.The Stata command that converts a markdown syntax into a html fileis dyndoc.Modesto Escobar (USAL)Exercises on the Internet24th October 20184 / 20

MarkdownDefinitionMarkdownProcessFirstly, we have to write a text file with markdown syntax.The following step is running the dyndoc command.dyndoc markdownfilename arguments , options This produces the file markdownfilename.html, although this namecan be change with the saving(htmlfilename) option.Especially useful is the replace option, because it is seldom needed torepeat the conversion from the text to the html file.Modesto Escobar (USAL)Exercises on the Internet24th October 20185 / 20

MarkdownTableMarkdownMain commandsThe markdownfile can contain markdown codes. The most useful symbolsare the following:Command######*1.*word***word**[Link](URL ”Text”)![](file.svg)Modesto Escobar (USAL)Meaning1st title2nd title3nd titleBullet listNumbered listEmphasisBoldURL linkGraph linkExercises on the Internet24th October 20186 / 20

MarkdownExamplesMarkdownExampleThis is an example of the beginning of a markdown file. It may containhtml markups: head link rel "stylesheet" type "text/css" href "stmarkdown.css" /head # Stata *Exercises*## Table of contents[First steps](Stata1.html "First steps with Stata")[Variables preparation](Stata2.html "Preparation")[2nd and 3rd order tables](Stata3.html "Tabulation")[Regression](Stata4.html "Regression")Modesto Escobar (USAL)Exercises on the Internet24th October 20187 / 20

MarkdownExamplesMarkdownResultModesto Escobar (USAL)Exercises on the Internet24th October 20188 / 20

MarkdownExamplesUsing listsAn example of lists with 1., 2., and *.## First steps1. Explore Stata windows* Results* Commands* History* Variables* Property* Data* Help2. First analysisModesto Escobar (USAL)Exercises on the Internet24th October 20189 / 20

MarkdownExamplesMarkdownResult of listsModesto Escobar (USAL)Exercises on the Internet24th October 201810 / 20

DynamicsDefinitionDynamic tagsMain tagsThe markdownfile can also contain dynamic tags, which are instructions toperform certain actions such a block of Stata deignoreremoveskip ifMeaningVersion of dynamic conversionExecute a block of Stata codeOutput of a Stata expressionExport and include a Stata graphInclude a text fileIgnore dynamic tagsRemove the following textSkip text based on conditionEnd/dd do/dd ignore/dd removedd skip endIn addition we use to express that some text (Stata commands oroutputs) should be written in plain format.Modesto Escobar (USAL)Exercises on the Internet24th October 201811 / 20

DynamicsExamplesDynamic markdownFalse webuse and proper use of nhanes2 webusesvy tabopt, cleardd do:quietlyuse nhanes2, clear/dd do Modesto Escobar (USAL)Exercises on the Internet24th October 201812 / 20

DynamicsExamplesExecuting dynamic commandsAn example of tabulate and summary commands dd dotab1 race sex/dd do dd dotabulate race sex/dd do dd dosummarize income weight height/dd do Modesto Escobar (USAL)Exercises on the Internet24th October 201813 / 20

DynamicsExamplesExample of Stata web pageUnivariate tablesModesto Escobar (USAL)Exercises on the Internet24th October 201814 / 20

DynamicsExamplesExample of Stata web pageUnivariate tablesModesto Escobar (USAL)Exercises on the Internet24th October 201815 / 20

DynamicsExamplesExample of Stata web pageUnivariate tablesModesto Escobar (USAL)Exercises on the Internet24th October 201816 / 20

DynamicsExamplesExample of Stata web pageOverviewModesto Escobar (USAL)Exercises on the Internet24th October 201817 / 20

DynamicsGraphsMarkdownGraphsdd dohistogram income, name(gr1, replace)/dd dodd graph:saving(gr1.png) width(700) graphname(gr1) replaceModesto Escobar (USAL)Exercises on the Internet24th October 201818 / 20

OverviewOverviewStepsPlan a Stata session.Write the markdown file with dynamic tags.Convert the markdown file to a html file with dyndoc.Repeat it with other Stata sessions.Write a markdown file with a list of links to the previous html files,and convert it into the main html page.Modesto Escobar (USAL)Exercises on the Internet24th October 201819 / 20

FinalLast slideThanksVisit this page as a Spanish example.Thank you very much!modesto@usal.esModesto Escobar (USAL)Exercises on the Internet24th October 201820 / 20

Exercises on the Internet for researchers and students to learn Stata M. Escobar (modesto@usal.es) Universidad de Salamanca 11th Spanish Stata Users Group meeting Barcelona, 24th October-2018 Modesto Escobar (USAL) Exercises on the Internet 24th October 2018 1 / 20

Related Documents:

May 02, 2018 · D. Program Evaluation ͟The organization has provided a description of the framework for how each program will be evaluated. The framework should include all the elements below: ͟The evaluation methods are cost-effective for the organization ͟Quantitative and qualitative data is being collected (at Basics tier, data collection must have begun)

Silat is a combative art of self-defense and survival rooted from Matay archipelago. It was traced at thé early of Langkasuka Kingdom (2nd century CE) till thé reign of Melaka (Malaysia) Sultanate era (13th century). Silat has now evolved to become part of social culture and tradition with thé appearance of a fine physical and spiritual .

On an exceptional basis, Member States may request UNESCO to provide thé candidates with access to thé platform so they can complète thé form by themselves. Thèse requests must be addressed to esd rize unesco. or by 15 A ril 2021 UNESCO will provide thé nomineewith accessto thé platform via their émail address.

̶The leading indicator of employee engagement is based on the quality of the relationship between employee and supervisor Empower your managers! ̶Help them understand the impact on the organization ̶Share important changes, plan options, tasks, and deadlines ̶Provide key messages and talking points ̶Prepare them to answer employee questions

Dr. Sunita Bharatwal** Dr. Pawan Garga*** Abstract Customer satisfaction is derived from thè functionalities and values, a product or Service can provide. The current study aims to segregate thè dimensions of ordine Service quality and gather insights on its impact on web shopping. The trends of purchases have

Bruksanvisning för bilstereo . Bruksanvisning for bilstereo . Instrukcja obsługi samochodowego odtwarzacza stereo . Operating Instructions for Car Stereo . 610-104 . SV . Bruksanvisning i original

Chính Văn.- Còn đức Thế tôn thì tuệ giác cực kỳ trong sạch 8: hiện hành bất nhị 9, đạt đến vô tướng 10, đứng vào chỗ đứng của các đức Thế tôn 11, thể hiện tính bình đẳng của các Ngài, đến chỗ không còn chướng ngại 12, giáo pháp không thể khuynh đảo, tâm thức không bị cản trở, cái được

10 tips och tricks för att lyckas med ert sap-projekt 20 SAPSANYTT 2/2015 De flesta projektledare känner säkert till Cobb’s paradox. Martin Cobb verkade som CIO för sekretariatet för Treasury Board of Canada 1995 då han ställde frågan