Stata_Cheat_Sheet_Socrates_Server

Stata_Cheat_Sheet_Socrates_Server - d Drag and drop ps1.do...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Stata Cheat Sheet 0. If you are using a computer in Wheeler 212, use the generic Econ 142 username and password to login. The username and password are in the "Using Stata on the Socrates Server.doc" document that is posted on Bspace. 1. Write a program a. Open up Notepad b. Write Code c. Save as ps1.do on desktop. i. Note that if you are using a computer in the lab, after you log out your work will be lost. 2. Login to Socrates a. START MENU—All programs—Networking—Secure Shell Client b. The host is "socrates" if you are on a computer in one of the Berkeley labs. (Or "socrates.berkeley.edu" if you are logging in from home.) c. (If you haven't already done so, change your password from the one I gave you to a personal one.) 3. Login to Secure File Transfer Client a. All programs—Networking—Secure File Transfer Client b. The host is "socrates" if you are on a computer in one of the Berkeley labs or "socrates.berkeley.edu" if you are logging in from home. c. Drag and drop the data file (data4.dta) there
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: d. Drag and drop ps1.do there. It will show up as ps1.do.txt. e. Leave the Transfer Window open 4. Go back to Socrates a. Execute the do file: i. socrates% stata –b do ps1.do.txt ii. socrates% ls 1. The ls command lists all the files in your current directory. You will see that ps1.log (the log file with all of your Stata results) will show up. 5. Go to Transfer Client a. You will see ps1.log on right hand side. Drag it to left hand side: Desktop b. At that point, it just shows up as ps1 c. Open ps1 in MS Word d. Look at it 6. Graphs a. Go back to Socrates and make a pdf file of your graph i. socrates% /usr/local/stata/gphpen –dps –n graph1.gph ii. socrates% ps2pdf graph1.ps graph1.pdf b. Go back to Transfer Client i. Pick up pdf file and transfer it to desktop ii. View and print 7. Logout of Secure Shell by typing exit at the socrates% prompt. 8. Disconnect from Secure File Transfer by clicking the little computer with the red slash through it....
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern