Free Essay

Stata

In:

Submitted By debasishmse
Words 3880
Pages 16
Appendix II: STATA Preliminary
STATA is a statistical software package that offers a large number of statistical and econometric estimation procedures. With STATA we can easily manage data and apply standard statistical and econometric methods such as regression analysis and limited dependent variable analysis to crosssectional or longitudinal data. STATA is widely used by analysts working with household survey data.

1. Getting Started 1.1. Starting STATA

Start a STATA session by double-clicking on the STATA icon in your desktop. The STATA computing environment comprises four main windows. The size and shape of these windows may be moved about on the screen. Their general look and description are shown below:

It is useful to have the Stata Results window be the largest so you can see a lot of information about your commands and output on the screen. In addition to these windows STATA environment has a menu and a toolbar at the top (to perform STATA operations) and a directory status bar at the bottom (that shows the current directory). You can use menu and toolbar to issue different
Poverty Manual, All, JH Revision of August 8, 2005 Page 170 of 218

STATA commands (like opening and saving data files), although most of the time it is more convenient to use the Stata Command window to perform those tasks. If you are creating a log file (see below for more details), the contents can also be displayed on the screen; this is sometimes useful if one needs to back up to see earlier results from the current session.
1.2. Opening a Dataset

You open a STATA dataset by entering following command in the Stata Command window: use hh

(or possibly use c:\intropov\data\hh, depending on where STATA has opened up; see below for more details). You can also click on File and the Open and then browse to find the file you need. STATA responds by displaying the following in the Stata Results window:
. use hh .

The first line repeats the command you enter and the second line with no error message implies that the command has been executed successfully. From now on, we will show only the Stata Results window to demonstrate STATA commands. The following points should be noted:
• •

STATA assumes the file to be in STATA format with an extension .dta. So, typing hh is the same as typing hh.dta. We can only have one data set open at a time in STATA. So if we open another data set ind.dta, we will be replacing hh.dta with ind.dta. Fortunately, STATA does not allow you do to this without warning, unless you type something like use ind.dta, clear. The above command assumes that the file hh.dta is in the current directory (shown by the directory status bar at the bottom). If that is not the case then you can do one of the following two things (assuming current directory is c:\stata\data and the file hh.dta is in c:\intropov): Type the full path of the data file:
. use c:\intropov\data\hh



Or make c:\intropov as the current directory and then open the file as before:
. cd c:\intropov\data . use hh .

If the memory allocated to STATA (which is 1,000K or 1M by default) is too little for the data file to be opened, as is typically the case when working with large household survey data sets, we will see an error message like the following:

Poverty Manual, All, JH Revision of August 8, 2005

Page 171 of 218

. use hh no room to add more observations r(901); .

The third line displays the code associated with the error message. All error messages in STATA have associated codes like this; further explanations are available in the STATA Reference Manuals. In this case we have to allocate more memory to STATA. The following commands allocate 30M to STATA and then try again to open the file:
. set memory 30m [This generates a table with information] . use hh .

Since the file opens successfully, allocated memory is sufficient. If you continue to get an error message, you can use a larger amount of memory, although this may slow down your computer somewhat. Note that the set memory command works only if no data set is open. Otherwise you will get following error message:

. use hh
. set memory 10m no; data in memory would be lost r(4);

You can clear the memory using one of the two commands: clear or drop _all. The following demonstration shows the first command:
. use hh . set memory 10m no; data in memory would be lost r(4); . clear . set memory 10m .

1.3 Saving a Data set

If you make changes in an open STATA data file and want to save those changes, you can do that by using the STATA save command. For example, the following command saves the hh.dta file:

Poverty Manual, All, JH Revision of August 8, 2005

Page 172 of 218

. save hh, replace file hh.dta saved

You can optionally omit the filename here (just save, replace is good enough). If you do not use the replace option STATA does not save the data but issues the following error message:
. save hh file hh.dta already exists r(602);

The replace option unambiguously tells STATA to overwrite the pre-existing original version with the new version. If you do NOT want to lose the original version, you have to specify a different filename in the save command, for instance using:
. save hh1 file hh1.dta saved

Notice that there is no replace option here. However, if a file named hh1.dta already exists then you have to either use the replace option or use a new filename.
1.4. Exiting STATA

An easy way to exit STATA is to issue the command: exit. However, if you have an unsaved data set open, STATA will issue the following error message:
. exit no; data in memory would be lost r(4);

To remedy this problem you can save the data file and then issue the exit command. If you really want to exit STATA without saving the data file, you can first clear the memory (using clear or drop _all command as shown before) and issue the exit command. You can also simplify the process by combining two commands:
. exit, clear

1.5. STATA Help

STATA comes with an excellent multivolume set of manuals. However, the on-computer help facility in STATA is extensive and very useful; and if you have access to the Web, an even larger set of macros and other useful information is available.

Poverty Manual, All, JH Revision of August 8, 2005

Page 173 of 218



From within STATA, if you know which command or keyword you want the help information about, you can the issue the command help followed by the command name or keyword. This command only works if you type the full command name or keyword unabbreviated. For example, the following will not work,
. help mem help for mem not found try help contents or search mem

but this will:
. help memory [output omitted]



If you can not recall the full command name or keyword, or you are not sure about which command you want you can use the command lookup or search followed by the command name or keyword. So following will work:
. search mem [output omitted]



This command will list all commands associated with this keyword and display a brief description of each of those commands. Then you can pick what you think is relevant and use “help” to obtain the specific reference. The STATA website (http://www.stata.com) has excellent help facilities, for example, Online Tutorial, Frequently Asked Questions (FAQ), etc.

1.6. Notes on STATA Commands

Here are some general comments about STATA commands:
• • •

STATA commands are typed in lower case. All names, including commands or variable names, can be abbreviated as long as there is no ambiguity. So describe, des or simply d do the same job as there is no confusion. In addition to typing, some keystrokes can be used to represent a few STATA commands or sequences. The most important of them are the Page-Up and Page-Down keys. To display the previous command in the Stata Command window, you can press the Page-Up key. You can keep doing that until the first command of the session appears. Similarly, the Page-Down key displays the command that follows the currently displayed command in the Stata Command window. Clicking once on a command in the Review window will put it into the Stata Command window; double clicking it will tell STATA to execute the command. This can be useful when commands need to be repeated, or edited slightly in the Stata Command window.



Poverty Manual, All, JH Revision of August 8, 2005

Page 174 of 218

2. Working with data files: looking at the content
From now on, we will mostly list the command(s) and not the results, to save space. To go through this exercise open the hh.dta file, as we will use examples extensively from this data file.

2.1. Listing the variables

To see all variables in the data set, use the describe command (fully or abbreviated):
. describe

This command provides information about the data set (name, size, number of observations) and lists all variables (name, storage format, display format, label). To see just one variable or list of variables use the describe command followed by the variable name(s):
. d hhcode vill storage display value variable name type format label variable label ---------------------------------------------------------------hhcode double %7.0f COMPLETE HOUSEHOLD CODE vill float %2.0f VILLAGE CODE

As you can see, the describe command shows also the variable type, its length and a short description of the variable (if available). The following points should be noted:


You can abbreviate a list of variables by typing only the first and last variable names, separated by a hyphen (-); the Variables window shows the order in which the variables are stored. For example, to see all variables from hhcode up to famsize, you could type:
. describe hhcode-famsize



The wildcard symbol (*) is helpful to save some typing. For example, to see all variables that start with "hh", you could type:
. describe hh*

You can abbreviate a variable or variable list this way in any STATA command (where it makes sense), not just in describe.

Poverty Manual, All, JH Revision of August 8, 2005

Page 175 of 218

2.2. Listing data

To see actual data stored in the variables we use the list command (abbreviated as l). If you type the command list all by itself STATA will display values for all variables and all observations, which is not desirable for any practical purpose (and you may need to use the Ctrl-Break combination to stop data from scrolling endlessly across the screen!). We usually want to see the data for certain variables and for certain observations. We achieve this by typing a list command with a variable list and with conditions, as shown in the following examples. The following command lists all variables of the first three observations:
. list in 1/3

Here STATA displays all observations starting with observation 1 and ending with observation 3. STATA can also display data as a spreadsheet. There are two icons in the toolbar called Data Editor and Data Browser (fourth and third from right). By clicking one, a new window will pop up and the data will be displayed as a table, with observations as rows and variables as columns. Data Browser will only display the data, whereas you can edit data with Data Editor. The commands edit and browse will also open the spreadsheet window. The following command lists household size and head's education for households headed by a female who is younger than 45:
. list famsize educhead if (sexhead==0 & agehead= (greater than or equal) >= (less than or equal) != or ~= (not equal)

Logical operators ~ (not) | (or) & (and)

You can use relational and logical operators in any STATA command (where it makes sense), not just in the list command.

Poverty Manual, All, JH Revision of August 8, 2005

Page 176 of 218

2.3. Summarizing data

The very useful command summarize (which may be abbreviated as sum) calculates and displays a few of summary statistics, including means and standard deviations. If no variable is specified, summary statistics are calculated for all variables in the data set. The following command summarizes the household size and education of the household head:
. sum famsize educhead

Any observation that has a missing value for the variable(s) being summarized is excluded from this calculation by STATA (missing values are discussed later). If we want to know the median and percentiles of a variable, we need to add the detail option (abbreviated d):
. sum famsize educhead, d

A great strength of STATA is that it allows for the use of weights. The weight option is useful if the sampling probability of one observation is different from another. In most household surveys, the sampling frame is stratified, where the first primary sampling units (often villages) are sampled, and conditional on the selection of primary sampling unit, secondary sampling units (often households) are drawn. Household surveys generally provide weights to correct for the sampling design differences and sometimes data collection problems. The implementation in STATA is straightforward:
. sum famsize educhead [aw=weight]

Here the variable weight has the information on the weight to be given to each observation and aw is a STATA option to incorporate the weight into the calculation. We will discuss the use of weights further in the chapter exercises given below. For variables that are strings, summarize will not be able to give any descriptive statistics except that the number of observations is zero. Also, for variables that are categorical (e.g. illiterate = 1, primary education = 2, higher education = 3), it can be difficult to interpret the output of the summarize command. In both cases, a full tabulation may be more meaningful, which we will discuss next. Many times we want to see summary statistics by group of certain variables, not just for the whole data set. Suppose we want to see mean family size, and education of household head, by region. We could use a condition in the sum command (for example, sum famsize educhead if region == 1 [aw=weight]), and so on for the other regions, but this is not convenient if the number of categories in the group is large. There is a simpler solution. First, sort the data by the group variable (in this case, region). You can check this by issuing describe command after opening each file. The describe command, after listing all

Poverty Manual, All, JH Revision of August 8, 2005

Page 177 of 218

the variables, indicates whether the data set is sorted by any variable(s). If there is no sorting information listed or the data set is sorted by a variable that is different from what you want it to be, you can use the sort command and then save the data set in this form. The following commands sort the data set by region and show summary statistics of family size and education of household head by region:
. sort region . by region: sum famsize educhead [aw=weight]

2.4. Frequency distributions (tabulations)

We often need frequency distributions and cross tabulations. We use the tabulate (abbreviated tab) command to do this. The following command gives the regional distribution of the households:
. tab region

The following command gives the gender distribution of household heads in region 1:
. tab sexhead if region==1

In passing, note the use of the = = sign here. It indicates that if the regional variable is identically equal to 1, then do the tabulation. We can use the tabulate command to show a two-way distribution. For example, we might want to check whether there is any gender bias in the education of household heads. We use the following command:
. tab educhead sexhead

To see percentages by row or columns we can add options to the tabulate command:
. tab region sexhead, col row

2.5. Distributions of descriptive statistics (table command)

Another very convenient command is table, which combines features of the sum and tab commands. In addition, it displays the results in a more presentable form. The following table command shows the mean of family size, and education of household head, by region:
. table region, c(mean famsize mean educhead)

Poverty Manual, All, JH Revision of August 8, 2005

Page 178 of 218

-----------------------------------------region | mean(famsize) mean(educhead) ----------+------------------------------Dhaka | 5.23 2 Chittagon | 5.82 3 Khulna | 5.03 3 Ragfhahi | 5.03 2 ------------------------------------------

The results are as we expected. But why is the mean of educhead displayed as an integer and not a fraction? This is because the educhead variable is stored as an integer number and STATA simply truncated numbers after the decimal. Look at the description of this variable.
. d educhead storage variable name type display format value label variable label

------------------------------------------------------------------------------educhead float %2.0f Education (years) of HH Head

We see that educhead is a float variable: its format (%2.0f) shows that its digits occupy 2 places and it has no digit after the decimal. You can force STATA to reformat the display. Suppose we want it display two places after the decimal, for a three-digit display. The following command shows that and subsequent table command:
. format educhead %3.2f . table region, c(mean famsize mean educhead) -----------------------------------------region | mean(famsize) mean(educhead) ----------+------------------------------Dhaka | 5.23 2.09 Chittagon | 5.82 3.14 Khulna | 5.03 2.91 Ragfhahi | 5.03 2.15 ------------------------------------------

This is much better. Formatting changes only the display of the variable, not the internal representation of the variable in the memory. The table command can display up to five statistics, and variables other than the mean (such as the sum or minimum or maximum). It is also possible to display two-way, threeway or even higher dimensional tables. Here is an example of a two-way table, which breaks down the education of the household head not just by region but also by sex of household head:

Poverty Manual, All, JH Revision of August 8, 2005

Page 179 of 218

. table region sexhead, c(mean famsize mean educhead) ---------------------| sex head | 1=male region | 0 1 ----------+----------Dhaka | 3.36 5.37 | 0.18 2.24 | Chittagon | 4.17 6.08 | 1.50 3.39 | Khulna | 4.18 5.11 | 1.36 3.05 | Ragfhahi | 3.70 5.13 | 0.00 2.31 ----------------------

2.5. Missing Values in STATA

In STATA, a missing value is represented by a dot (.). A missing value is considered larger than any number. The summarize command ignores the observations with missing values and the tabulate command does the same, unless forced to include missing values.
2.6. Counting observations

We use the count command to count the number of observations in the data set:
. count 519 .

The count command can be used with conditions. The following command gives the number of households whose head is older than 50:
. count if agehead>50 159 .

3. Working with data files: changing data set
3.1. Generating new variables

In STATA the command generate (abbreviated gen) creates new variables, while the command replace changes the values of an existing variable. The following commands create a new variable called oldhead, then set its value to 1 if the household head is older than 32 years and to 0 otherwise:
Poverty Manual, All, JH Revision of August 8, 2005 Page 180 of 218

. gen oldhead=1 if agehead>32 (98 missing values generated) . replace oldhead=0 if agehead sexhead = 1 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------educ | 2588 2.340417 3.324081 0 16 .log close

Poverty Manual, All, JH Revision of August 8, 2005

Page 186 of 218

What happens here is that STATA creates a text file named educm.log in the current directory and saves the summary output in that file. If you want the .log file to be saved in a directory other than current directory, you can specify full path of the directory in the .log creation command. You can also use the File button, followed by Log and Begin. If a .log file already exists, you could either replace it, with log using educm.log, replace, or append new output to it with log using educm.log, append. If you really want to keep the existing .log file unchanged, then you can rename either this file or the file in the .log creation command. In a .log file if you want to suppress portion of it, you can issue log off before that portion and log on command after that. You have to close a .log file before opening a new one, otherwise you will get an error message. If you find yourself using same set of commands repeatedly, you can save those commands in a file and run them together whenever you need it. These command files are called .do files, and are the STATA equivalent of “macros”. There are at least three good ways to create .do files: 1. Simply type the commands into a text file; label it educm.do (the .do suffix is important); and run the file using do educm in the Stata Command window. 2. Right click anywhere in the Review window; this will save all the commands that were used interactively. The file in which they were saved can be edited, labeled, and used as a .do file. 3. Use STATA’s built-in .do editor. It is invoked by clicking on the icon (the fifth from the right, at the top of the page). Commands may then be typed into the editor. These commands may be run by highlighting them and running them using the appropriate icon (the second from the right) within the .do editor. With practice this becomes a very quick and convenient way to work with STATA. Here is an example of a .do file: log using educm.log use ind sort hhcode save, replace use hh merge hhcode using ind tab _merge sort sexhead by sexhead:sum educ log close

The main advantages of using .do files instead of typing commands line by line are replicability and repeatability. With a .do file, one can replicate results that were worked on weeks or months before. And .do files are especially useful when sets of commands need to be repeated – for instance, with different data sets, or groups. There are certain commands that are useful in a .do file. We will discuss them from the following sample .do file:

Poverty Manual, All, JH Revision of August 8, 2005

Page 187 of 218

*This is a STATA comment that is not executed /*****This is a do file that shows some very useful commands used in do files. In addition, it creates a log file and uses some basic STATA commands ***/ #delimit ; set more 1; drop _all; cap log close; log using c:\intropov\logfiles\try1.log, replace; use c:\intropov\data\hh.dta ; describe ; list in 1/3 ; list hhcode famsize educhead if sexhead==2 & agehead

Similar Documents

Premium Essay

Stata

...STATA 十八讲1入门 STATA 十八讲 中国人民大学 陈传波 chrisccb@126.com 1 STATA 十八讲1入门 目录 STATA十八讲 ....................................................................................................................................1 目录 ..................................................................................................................................................2 前 言 ..............................................................................................................................................6 1 STATA入门.....................................................................................................................................9 1.1 安装.....................................................................................................................................9 1.2 启用和退出.........................................................................................................................9 1.3 打开和查看数据...............................................................................................................11 1.4 寻求帮助与网络资源.......................................................................................................12 1.5 命令示例...........................................................................................................................13 1.6 几个环境设置...................................................................................................................14 1.7 复习和练习...........................................

Words: 7147 - Pages: 29

Premium Essay

Stata

...Economic Modelling 28 (2011) 1348–1353 Contents lists available at ScienceDirect Economic Modelling j o u r n a l h o m e p a g e : w w w. e l s ev i e r. c o m / l o c a t e / e c m o d Foreign direct investment and China's regional income inequality☆ Kang Yu a, Xian Xin b,c, Ping Guo a, Xiaoyun Liu d,⁎ a School of Economics and Management, Zhejiang Forestry University, Zhejiang, 311300, PR China Center for Rural Development Policy, China Agricultural University, Beijing, 100083, PR China c College of Economics and Management, China Agricultural University, Beijing, 100083, PR China d College of Humanities and Development Studies, China Agricultural University, Beijing, 100083, PR China b a r t i c l e i n f o a b s t r a c t China's widening regional income inequality coupled with its pronounced regional disparity in foreign direct investment stock since 1990 has claimed the attention of many scholars. While some researchers confirm regional disparity in China's foreign direct investment, others attribute the widening regional income inequality to this regional disparity. This paper thus assesses the impacts of China's stock of foreign direct investment on its regional income inequality using simultaneous equation model and the Shapley value regression-based decomposition approach. Our results suggest that China's stock of foreign direct investment has accounted for merely 2% of its regional income inequality. Furthermore, the contribution ratio of per...

Words: 5685 - Pages: 23

Free Essay

Stata

...De acuerdo a la prueba F de la regresión, se puede ver que el modelo es estadísticamente significativo ya que su valor es menor a 0.05 (su valor es 0.0000), de manera que este modelo logra explicar relaciones entre variables. La Hipótesis 1 plantea que los estudiantes de derecha tienden a tener actitudes más fuertes en contra de la democracia liberal que los estudiantes de izquierda. De acuerdo a este modelo, la variable ideología (l1) se encuentra relacionada de forma positiva con las actitudes en contra de la democracia liberal (variable iliberal) dado que el valor T de la ideología es 5.87. Teniendo en cuenta este valor se puede ver entonces que cuando la ideología de un estudiante aumenta (hacia el espectro de derecha), las actitudes en contra de la democracia liberal aumentan en 1.53. Esto demuestra que la hipótesis es válida. La Hipótesis 2 plantea que quienes evalúan mejor el trabajo del gobierno actual tienen actitudes más fuertes en contra de la democracia liberal. De acuerdo a este modelo, la evaluación del gobierno actual (m1ar) no se encuentra relacionada con las actitudes en contra de la democracia liberal (iliberal) dado que su valor T es -0.44. Este valor muestra que no hay una relación existente entre estas dos variables, de manera que son independientes la una de la otra y así, se rechaza la hipótesis. La Hipótesis 3 plantea que quienes evalúan mejor el trabajo del gobierno anterior tienen actitudes más fuertes en contra de la democracia liberal. Teniendo...

Words: 717 - Pages: 3

Premium Essay

Econometrics-Stata

...上海大学 20 4 ~ 2015 学年 秋季学期研究生课程考试 课程名称: Econometrics 论文题目(Title): 研究生姓名(Name): Hoang Thi Lan Huong 学号(ID): 14760006 研究生班级: 留学生班 成 绩: 任课教师: 叶明确 评阅日期: 1. Introduction (Background and Purpose) The data use for this paper was constructed in the following way. The data are drawn from the OPE Campus Safety and Security Statistics website database to which crime statistics (as of the 2010 data collection) are submitted annually, via a web-based data collection, by all postsecondary institutions that receive Title IV funding (i.e., those that participate in federal student aid programs). This data collection is required by the Jeanne Clery Disclosure of Campus Security Policy and Campus Crime Statistics Act and the Higher Education Opportunity Act. The outcome of this process was that the enrolments is not influenced significantly by the price or living conditions of the campus. When reading some articles I was personally very surprised about this since normally the living conditions should be influent more than the other factors in the enrolments. Based on this, I was very interested which other factors influence to students’ decisions. That is why I chose this dataset to analyze for the final term paper in the course of econometrics. 2. Multiple regressions 2.1 Data source The numerous data used in this paper (reference see below), consists of observations on six variables. The variables are: • enroll ...

Words: 1314 - Pages: 6

Premium Essay

Stata Guide

...Stata Guide (Version 10) Sunaina Dhingra This guide introduces the basic commands of Stata. 1. Starting Stata    Start Stata by using shortcut on the desktop that you can double-click Start Stata using the Windows menu, click the Start > All Programs > Stata 10 Locate a Stata data file, with *.dta extension, and double-click 2. Stata environment     Command—this is where Stata command are typed Results—output from commands, and error messages, appear here Review—a listing of commands recently executed Variables—names of variables in data and labels (if created) 3. Recording Output a. Log file Log file keeps track of everything that happens in the result window. In short, it keeps a record of the commands you have issued and their results during your session. In STATA log files have the extension .smcl or .log  Go to File > Log > Begin to open a log file. A screen will pop up, asking for where you want the log file to be saved.  Use command: log using filename [, append replace text]  where filename is any name you wish to give the file. The append option simply adds more information to an existing file, whereas the replace option erases anything that was already in the file.  Full logs are recorded in one of two formats: SMCL (Stata Markup and Control Language) or text (meaning ASCII). The default is SMCL, but the option text can change that.  If you want to temporarily turn off the log session, type log off in the command window. The session will resume...

Words: 4290 - Pages: 18

Premium Essay

Analog Devices, Incorporated: Microelectromechanical Systems (Mems)

...management control system case analysis solution and analysis Analog Devices, Incorporated: Microelectromechanical Systems (MEMS) From a conference room on the top floor of the four-story semiconductor manufacturing facility, Ray Stata briefly took in the view of the Massachusetts Institute of Technology (MIT) campus. In particular, he noticed the building under construction that would soon bear his name. Asked how this particular honor felt, Mr. Stata responded with a humble shrug. However, when asked about the Microelectromechanical Systems (MEMS) business, Mr. Stata was willing to show considerable pride. Mr. Stata was Chairman of Analog Devices, Incorporated (ADI), a company which he co-founded in 1965. MEMS was one division. He had invested a tremendous amount of personal attention and energy to the success of MEMS – and risked his reputation. In fact, without his vision and dedicated leadership, this ambitious, entrepreneurial effort would have collapsed under mounting losses several years earlier. During one three-year stretch, from 1997 to 2000, Mr. Stata had decided to simultaneously serve as Chairman of ADI and General Manager of the MEMS division in order to keep the venture alive. In 2002, Mr. Stata regarded the MEMS business as a jewel. With worldwide technical supremacy that had been built over fifteen years, the business was profitable, and the long-term growth prospects appeared tremendous. Still, he readily acknowledged that many...

Words: 278 - Pages: 2

Free Essay

Stata Problems

...CHANGE MANAGEMENT IN ACTION Transforming the corporate culture at Heinz Australia The Heinz Company's association with Australia began back in the 1880s when Heinz products were first imported from the USA to feed the American miners who came to work in the goldfields. Production first began in Australia in 1935 when Heinz (US) leased a factory in Richmond, Melbourne. During World War II Heinz began operating a factory in Devonport, and, from 1943 to 1946, the company sold 86 per cent of its production to the Commonwealth Government for supply to all the armed services. Postwar, Heinz Australia continued to expand, establishing new factories and acquiring numerous companies from the 1970s through to the 1990s. In 1998 Heinz Australia merged with Heinz–Watties, New Zealand. In 2003 the Heinz Watties Australasian business was restructured into three separate business units: HJ Heinz Australia, Tegal Foods New Zealand, and Heinz Watties New Zealand. It currently employs around 800 people in Australia and 1200 in New Zealand. With the restructure in 2003, Peter Widdows was appointed Managing Director of Heinz Australia and the company moved into its new head office at Southbank, Melbourne. In February 2009 Widdows was appointed Chief Executive Officer of Heinz Australasia (Japan, Australia, New Zealand and Korea). The phenomenal success of Heinz in Australia and its influence on Heinz businesses in the Pacific region over the last six years are largely credited to the transformational...

Words: 1146 - Pages: 5

Free Essay

Tp Probit Y Logit Stata

...Respuestas: Ejercicio 1: a)Sin lugar a dudas, los resultados coinciden con los de Mroz. Por el otro lado, encontramos un valor sospechoso en la variable WHRS. En particular, el máximo es de 4950 horas trabajadas en el año 1975. Es decir, esta cantidad de horas no es común (si suponemos que trabajasen un promedio de 10 horas por día harían falta 495 días). b) WALas mujeres que trabajaron eran más jóvenes pero, como hay solo 1 año de diferencia fue considerado irrelevante. WE En promedio, las mujeres que trabajan poseen 1 año más de educación pero nuevamente no es relevante ya que ese año no hace la diferencia. K618 En este caso, los valores coinciden HA El valor de la media difiere muy poco HE En este caso es lo mismo HHRS En este caso, las horas trabajadas por el esposo son mayores cuando la mujer notrabaja, entendible al ser el único individuo que se encarga de mantener el hogar. KL6 En cuanto a esta variable, es entendible que sea mayor cuando la mujer no seencuentra trabajando ya que le dedica más tiempo a la crianza de sus hijos. HW Con respecto al salario del esposo, este es mayor cuando la esposa no trabaja. Respecto al salario de reserva de las mujeres, este es mayor cuando tiene hijos pequeños (en estecaso<6 años). Es decir, para que la mujer trabaje, el salario del trabajo > salario de reserva que ellatiene y este último depende de la cantidad de hijos pequeños y del marido AX Esta variable muestra una gran diferencia entre la mujer que se encuentra...

Words: 1823 - Pages: 8

Free Essay

Business

...out on your own how to use Stata in ways that are unfamiliar to you; therefore: NO consultation with other students allowed for this part of the assignment) This involves the use of the faculty salary data set faculty.dta, which is in the iSite Data tab. For each of questions (a) through (d), do the following: i. In 1 or 2 sentences, briefly summarize how you found the answer. ii. Give a URL or Stata manual-with-page-number or Stata help window or data-analysis-book-with-page-number (or the equivalent) that contains the answer. iii. Run the appropriate command and include the command and Stata output in your write-up. For some of the questions, a graph is produced, and should also be included in your write-up for this assignment. a) How can the Stata pwcorr command be used to find the significance level (i.e., p-value) for the test that the correlation between the variables salary and market is zero? i. Before beginning, we performed a Google search to better understand the correlation between variables. After loading the data file, we then entered the “pwcorr salary market, sig print (.05)” command. The University of Indiana Stata website was very helpful in both providing code and explanations. In this case, the correlation between salary and market test scores was positive, moderately strong, and statistically significant (r=.4072, p < .001). To find the significance level ii. http://kb.iu.edu/data/alya.html iii. The Stata code and results are: b)...

Words: 1346 - Pages: 6

Premium Essay

Us Skewness

...Regression Analysis (Spring, 2000) By Wonjae Purposes: a. Explaining the relationship between Y and X variables with a model (Explain a variable Y in terms of Xs) b. Estimating and testing the intensity of their relationship c. Given a fixed x value, we can predict y value. (How does a change of in X affect Y, ceteris paribus?) (By constructing SRF, we can estimate PRF.) OLS (ordinary least squares) method: A method to choose the SRF in such a way that the sum of the residuals is as small as possible. Cf. Think of ‘trigonometrical function’ and ‘the use of differentiation’ Steps of regression analysis: 1. Determine independent and dependent variables: Stare one dimension function model! 2. Look that the assumptions for dependent variables are satisfied: Residuals analysis! a. Linearity (assumption 1) b. Normality (assumption 3)— draw histogram for residuals (dependent variable) or normal P-P plot (Spss statistics regression linear plots ‘Histogram’, ‘Normal P-P plot of regression standardized’) c. Equal variance (homoscedasticity: assumption 4)—draw scatter plot for residuals (Spss statistics regression linear plots: Y = *ZRESID, X =*ZPRED) Its form should be rectangular! If there were no symmetry form in the scatter plot, we should suspect the linearity. d. Independence (assumption 5,6: no autocorrelation between the disturbances, zero covariance between error term and X)—each individual should be independent 3. Look at the correlation between two variables by drawing...

Words: 1446 - Pages: 6

Premium Essay

Fdi-International Trade

...STATA USER’S GUIDE RELEASE 13 ® A Stata Press Publication StataCorp LP College Station, Texas ® Copyright c 1985–2013 StataCorp LP All rights reserved Version 13 Published by Stata Press, 4905 Lakeway Drive, College Station, Texas 77845 Typeset in TEX ISBN-10: 1-59718-115-3 ISBN-13: 978-1-59718-115-0 This manual is protected by copyright. All rights are reserved. No part of this manual may be reproduced, stored in a retrieval system, or transcribed, in any form or by any means—electronic, mechanical, photocopy, recording, or otherwise—without the prior written permission of StataCorp LP unless permitted subject to the terms and conditions of a license granted to you by StataCorp LP to use the software and documentation. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted by this document. StataCorp provides this manual “as is” without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. StataCorp may make improvements and/or changes in the product(s) and the program(s) described in this manual at any time and without notice. The software described in this manual is furnished under a license agreement or nondisclosure agreement. The software may be copied only in accordance with the terms of the agreement. It is against the law to copy the software onto DVD, CD, disk, diskette, tape,...

Words: 66820 - Pages: 268

Premium Essay

Analog Devices, Incorporated: Microelectromechanical Systems (Mems )

...no. 2-0018 Analog Devices, Incorporated: Microelectromechanical Systems (MEMS) From a conference room on the top floor of the four-story semiconductor manufacturing facility, Ray Stata briefly took in the view of the Massachusetts Institute of Technology (MIT) campus. In particular, he noticed the building under construction that would soon bear his name. Asked how this particular honor felt, Mr. Stata responded with a humble shrug. However, when asked about the Microelectromechanical Systems (MEMS) business, Mr. Stata was willing to show considerable pride. Mr. Stata was Chairman of Analog Devices, Incorporated (ADI), a company which he co-founded in 1965. MEMS was one division. He had invested a tremendous amount of personal attention and energy to the success of MEMS – and risked his reputation. In fact, without his vision and dedicated leadership, this ambitious, entrepreneurial effort would have collapsed under mounting losses several years earlier. During one three-year stretch, from 1997 to 2000, Mr. Stata had decided to simultaneously serve as Chairman of ADI and General Manager of the MEMS division in order to keep the venture alive. In 2002, Mr. Stata regarded the MEMS business as a jewel. With worldwide technical supremacy that had been built over fifteen years, the business was profitable, and the long-term growth prospects appeared tremendous. Still, he readily acknowledged that many of his colleagues disagreed with his assessment that the business was an unqualified...

Words: 9773 - Pages: 40

Premium Essay

Do Mind Your Mind

...Econometrics (Economics 360) Syllabus: Spring 2015 Instructor: Ben Van Kammen Office: Krannert 531 Office Hours: Friday, 10 a.m.-noon Email: bvankamm@purdue.edu Meeting Location: KRAN G010 Meeting Days/Times: TR 1:30-2:45 p.m. (001) TR 3-4:15 p.m. (002) TR 4:30-5:45 p.m. (003) Course Description This is an upper division economics course required for students pursuing a BS in economics. It is one of the few courses that explicitly covers empirical methods, i.e., the analysis of observed economic behavior in the form of data. Empirics stand in contrast to theory, e.g., micro and macro, about how agents behave. Despite this under-representation, empirical analysis comprises a large part of economists’ workload and is one of the most practical skills that an economics student can learn. Course Objectives In this class students will: 1. perform statistical and practical inference based on the results of empirical analysis, 2. identify useful characteristics of estimators, e.g., unbiasedness, consistency, efficiency, 3. state predictions of theoretical economic models in terms of testable hypotheses, 4. model economic relationships using classical methods, such as Ordinary Least Squares, derive the properties of estimators related to these methods, and 5. perform estimation using methods discussed in class using software, 6. perform diagnostic tests that infer whether a model’s assumptions are invalid, 7. evaluate empirical models based on whether their resulting estimators...

Words: 2067 - Pages: 9

Premium Essay

Case

...Mgmt 469 Practice Using Stata; Estimating CAPM In this tutorial, you will use monthly returns on several assets to compute stock betas. (The data is from 1978-1987.) Be sure to do steps 1-4. Steps 5-10 require navigating folders. This may prove tricky and can be skipped if you like. 1) You have three options for getting the data. Option (a) is much preferred for now. I will assume that you choose option (a) for this practice project. a) I will send you the data as attachments to an email. You can then save the files to the folder of your choice on the lab computer (or your own computer if you own Stata.) b) You can find the link on the course page. If you choose this option, please save the data to another folder. Do not work with the original data set. cd path:\folder save mycapmfile I will assume you have selected option (a). You should now open Stata (as you would any other program) and then open the capm.dta Stata file (again, as you would with any other file.) 2) Create new variables representing the risk premia for the market and for General Foods ge rpmarket=market-riskfree ge rpgenmills=genmills-riskfree 3) Obtain some summary statistics su riskfree market genmills or, better yet, su riskfree, de (this provides detailed statistics) Which has the highest return? Which has the lowest variance? Are you surprised? 4) Compute beta. Regress rpgmills on rpmarket: regress rpgenmills rpmarket At this point, your Stata screen should look something like the next page (the location...

Words: 586 - Pages: 3

Premium Essay

Question 1 Had Mr. Payne Negotiated an Agreement with Adi That Allowed Him to Start a Separate, Venture-Financed Company to Commercialize Mems Devices in the Late 80s, He Would Have Realized His Goal of Heading His Own

...no. 2-0018 Analog Devices, Incorporated: Microelectromechanical Systems (MEMS) From a conference room on the top floor of the four-story semiconductor manufacturing facility, Ray Stata briefly took in the view of the Massachusetts Institute of Technology (MIT) campus. In particular, he noticed the building under construction that would soon bear his name. Asked how this particular honor felt, Mr. Stata responded with a humble shrug. However, when asked about the Microelectromechanical Systems (MEMS) business, Mr. Stata was willing to show considerable pride. Mr. Stata was Chairman of Analog Devices, Incorporated (ADI), a company which he co-founded in 1965. MEMS was one division. He had invested a tremendous amount of personal attention and energy to the success of MEMS – and risked his reputation. In fact, without his vision and dedicated leadership, this ambitious, entrepreneurial effort would have collapsed under mounting losses several years earlier. During one three-year stretch, from 1997 to 2000, Mr. Stata had decided to simultaneously serve as Chairman of ADI and General Manager of the MEMS division in order to keep the venture alive. In 2002, Mr. Stata regarded the MEMS business as a jewel. With worldwide technical supremacy that had been built over fifteen years, the business was profitable, and the long-term growth prospects appeared tremendous. Still, he readily acknowledged that many of his colleagues disagreed with his assessment that the business was an unqualified...

Words: 9858 - Pages: 40