ECONOMICS 452* -- Stata 11 Tutorial 6. Stata 11 Tutorial 6. TOPIC: Representing Multi-Category Categorical Variables with Dummy Variable Regressors

Size: px
Start display at page:

Download "ECONOMICS 452* -- Stata 11 Tutorial 6. Stata 11 Tutorial 6. TOPIC: Representing Multi-Category Categorical Variables with Dummy Variable Regressors"

Transcription

1 ECONOMICS * -- Stata 11 Tutoral Stata 11 Tutoral TOPIC: Representng Mult-Category Categorcal Varables wth Dummy Varable Regressors DATA: wage1_econ.dta (a Stata-format dataset) TASKS: Stata 11 Tutoral deals wth ssues concernng the nterpretaton, testng and graphcal representaton of the condtonal/margnal effects of multcategory categorcal varables and wth dfferences n the condtonal/margnal effects of mult-category categorcal varables between two mutually exclusve populaton subgroups (e.g., males and females). It llustrates these matters n terms of a smple ln-wage regresson model for male and female employees n whch the mult-categorcal varable of nterest s ndustry of employment, as represented by a seven-category lanatory varable. The Stata commands that consttute the prmary subject of ths tutoral are: regress Used to perform OLS estmaton of multple lnear regresson models. lncom Used after estmaton to compute lnear combnatons of coeffcent estmates and assocated test statstcs. test Used to compute Wald F-tests of lnear coeffcent restrctons, wth notest and accumulate optons. return lst Used to dsplay all temporarly saved results from the most recent test or lncom command. graph bar Used to create bar graphs of the condtonal/margnal effects of a mult-category categorcal varable n lnear regresson models. graph ort Exports the graph currently dsplayed n the Graph wndow to a fle n the current Stata workng drectory. No Stata statstcal functons are used n ths tutoral. NOTE: Stata commands are case senstve. All Stata command names must be typed n the Command wndow n lower case letters. ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 1 of 3 pages

2 ECONOMICS * -- Stata 11 Tutoral Preparng for Your Stata Sesson Before begnnng your Stata sesson, use Wndows Explorer to copy the Stata-format dataset wage1_econ.dta to the Stata workng drectory on the C:-drve or D:- drve of the computer at whch you are workng. On the computers n Dunnng 3, the default Stata workng drectory s usually C:\data. On the computers n MC B111, the default Stata workng drectory s usually D:\courses. Start Your Stata Sesson To start your Stata sesson, double-clck on the Stata con on the Wndows desktop or n the Start menu under Programs. After you double-clck the Stata con, you wll see the famlar screen of four Stata wndows. Record Your Stata Sesson -- log usng To record your Stata sesson, ncludng all the Stata commands you enter and the results (output) produced by these commands, make a text-format.log fle named tutoral.log. To open (begn) the log fle tutoral.log, enter n the Command wndow: log usng tutoral.log Ths command opens a plan text-format (ASCII) fle called tutoral.log n the current Stata workng drectory. Note: It s mportant to nclude the.log fle extenson when openng a log fle; f you do not, your log fle wll be n smcl format, a format that only Stata can read. Once you have opened the tutoral.log fle, a copy of all the commands you enter durng your Stata sesson and of all the results they produce s recorded n that tutoral.log fle. ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page of 3 pages

3 ECONOMICS * -- Stata 11 Tutoral Record Only Your Stata Commands -- cmdlog usng To record only the Stata commands you type durng your Stata sesson, you can use the Stata cmdlog usng command. To start (open) the command log fle tutoral.txt, enter n the Command wndow: cmdlog usng tutoral Ths command opens a plan text-format (ASCII) fle called tutoral.txt n the current Stata workng drectory. All commands you enter durng your Stata sesson are recorded n ths fle. Loadng a Stata-Format Dataset nto Stata use Be certan that you have downloaded the Stata-format dataset wage1_econ.dta from the ECON course web ste, and have placed t n the Stata workng drectory. To check that the Stata-format dataset auto1.dta s n the current Stata workng drectory of the computer at whch you are workng, type n the Command wndow: dr wage1_econ.* You should see n the Stata Results wndow the flename wage1_econ.dta. To load, or read, nto memory the Stata-format dataset auto1.dta, type n the Command wndow: use wage1_econ Ths command loads nto memory the Stata-format dataset wage1_econ.dta. To summarze the contents of the current dataset, use the descrbe and summarze commands. Type n the Command wndow the followng commands: descrbe summarze ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 3 of 3 pages

4 ECONOMICS * -- Stata 11 Tutoral Model 1 Dfferent Intercepts for Male and Female Employees The dataset wage1_econ.dta contans a bnary ndcator (dummy) varable female that dstngushes between female and male workers. The female ndcator, or dummy, varable s defned as follows: female = 1 f the -th worker s female = f the -th worker s male To see for yourself how the dummy varable female s coded, as well as how many workers n the sample are male and how many are female, enter the followng commands: codebook female tab1 female summarze female, detal In ths secton, we estmate by OLS a regresson model for log hourly wages that constrans all the regresson coeffcents to be the same for female and male employees. Wrte the populaton regresson equaton for Model 1 as: ln(wage ) = β ed 1 3 nd nd nd nd nd3 + δ female + u nd (1) Regresson equaton (1) allows only the ntercept coeffcent to dffer between male and female workers; t restrcts all the slope coeffcents β j (j = 1,, ) to be equal or dentcal for male and female employees. The male ntercept coeffcent s β, and the female ntercept coeffcent s β + δ ; the slope coeffcent of the female ndcator varable female s therefore the female-male dfference n ntercept coeffcents, or equvalently the female-male dfference n condtonal mean ln-wages for gven values of years of completed schoolng, potental work erence, and ndustry of employment. Frst, generate the regressand (or dependent varable) ln( wage ) n Model 1. Enter the commands: generate lnwage = ln(wage) summarze wage lnwage ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page of 3 pages

5 ECONOMICS * -- Stata 11 Tutoral Estmate by OLS regresson equaton (1) on the full sample of observatons for both female and male employees. Enter the regress command: regress lnwage ed sq nd nd3 nd nd nd nd female You wll want to refer back to the OLS estmates of Model 1 produced by ths regress command, as Model 1 represents the benchmark for all subsequent models n ths tutoral. Model Dfferent Industry Effects for Male and Female Employees In ths secton, we consder a regresson model that allows not only the ntercept coeffcent, but also the set of sx ndustry slope coeffcents, to dffer between male and female employees. In other words, Model allows for dfferent ndustry effects for male and female workers, but restrcts the margnal effects of the contnuous lanatory varables ed and to be equal for male and female workers. Model adds to the regressors of Model 1 a set of nteractons of the female ndcator female wth each of the sx ncluded ndustry dummy varables; these female-ndustry nteracton varables are defned as follows: f = f = f = f = f = f = nd femalend nd3 femalend3 nd femalend nd femalend nd femalend nd femalend The populaton regresson equaton for Model can be wrtten as: ln(wage ) = β ed 1 + δ f nd nd nd + δ f nd 3 nd + δ + δ f nd nd female nd3 + δ f nd + δ f nd + u nd + δ f nd3 () ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page of 3 pages

6 ECONOMICS * -- Stata 11 Tutoral Before estmatng Model by OLS, you wll need to create the female-ndustry nteracton varables. Enter the followng generate commands: generate fnd = female*nd generate fnd3 = female*nd3 generate fnd = female*nd generate fnd = female*nd generate fnd = female*nd generate fnd = female*nd Interpretaton of Model : Industry base group s ndustry 1 Before proceedng to estmaton of Model, we should make sure that we understand how to nterpret the ndustry coeffcents n Model. The populaton regresson equaton for Model can be wrtten as: ln(wage ) = β ed 1 + δ f nd nd nd + δ f nd 3 nd + δ + δ f nd nd female nd3 + δ f nd + δ f nd + u nd + δ f nd3 () The populaton regresson functon for Model.1 s obtaned by takng the condtonal ectaton of regresson equaton (.1) for any gven values of the three lanatory varables ed,, nd, nd3, nd, nd, nd, nd and female : E(ln(wage ) ed,, nd, = β K ed 1 + δ f nd nd nd 3 + δ f nd,nd, female ) nd nd + δ + δ f nd nd3 female + δ f nd nd + δ f nd + δ f nd3 (*) The male populaton regresson functon mpled by Model s obtaned by settng the female ndcator varable female = n (*): E(ln(wage ) ed,, nd, K,nd, female = ) ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page of 3 pages

7 ECONOMICS * -- Stata 11 Tutoral = β ed 1 nd nd 3 nd nd nd3 nd (m) The male ndustry ntercept coeffcents are: Industry 1 ntercept coeffcent for males = β Industry ntercept coeffcent for males = β Industry 3 ntercept coeffcent for males = β Industry ntercept coeffcent for males = β Industry ntercept coeffcent for males = β Industry ntercept coeffcent for males = β Industry ntercept coeffcent for males = β The set of ndustry effects for male workers n Model.e., the nter-ndustry dfferences n condtonal mean ln-wages for male employees wth gven values of ed and are gven by the male slope coeffcents of the ndustry dummy varables nd, nd3, nd, nd, nd, and nd that are ncluded as regressors n Model. From the ndustry ntercept coeffcents for males gven above, t follows that these male ndustry effects are: β = the ndustry ndustry 1 dfference n mean ln-wages for males; β = the ndustry 3 ndustry 1 dfference n mean ln-wages for males; β = the ndustry ndustry 1 dfference n mean ln-wages for males; β = the ndustry ndustry 1 dfference n mean ln-wages for males; β = the ndustry ndustry 1 dfference n mean ln-wages for males; β = the ndustry ndustry 1 dfference n mean ln-wages for males. ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page of 3 pages

8 ECONOMICS * -- Stata 11 Tutoral The female populaton regresson functon mpled by Model s obtaned by settng the female ndcator varable female = 1 n (*): E(ln(wage ) ed,, nd, K,nd, female = 1) = β ed 1 + δ nd nd nd 3 nd nd + δ + δ nd + δ nd + δ nd3 + δ nd nd nd + δ nd3 = ( β + ( β + δ ) ed + δ 1 )nd + ( β 3 + ( β + δ )nd + ( β + δ + δ )nd )nd + ( β + ( β + δ + δ )nd3 )nd (f) The female ndustry ntercept coeffcents are: Industry 1 ntercept coeffcent for females = β + δ Industry ntercept coeffcent for females = β + δ + δ Industry 3 ntercept coeffcent for females = β + δ + δ Industry ntercept coeffcent for females = β + δ + δ Industry ntercept coeffcent for females = β + δ + δ Industry ntercept coeffcent for females = β + δ + δ Industry ntercept coeffcent for females = β + δ + δ The set of ndustry effects for female workers n Model.e., the nterndustry dfferences n condtonal mean ln-wages for female employees wth gven values of ed and are gven by the female slope coeffcents of the ndustry dummy varables nd, nd3, nd, nd, nd, and nd that are ncluded as regressors n Model. From the ndustry ntercept coeffcents for females gven above, t follows that these female ndustry effects are: β + δ = the ndustry ndustry 1 dfference n mean ln-wages for females; β + δ = the ndustry 3 ndustry 1 dfference n mean ln-wages for females; β + δ = the ndustry ndustry 1 dfference n mean ln-wages for females; β + δ = the ndustry ndustry 1 dfference n mean ln-wages for females; β + δ = the ndustry ndustry 1 dfference n mean ln-wages for females; β + δ = the ndustry ndustry 1 dfference n mean ln-wages for females. ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page of 3 pages

9 ECONOMICS * -- Stata 11 Tutoral The female-male dfferences n ndustry effects mpled by Model are obtaned by subtractng the male ndustry coeffcents (β, β, β, β, β and β ) from the correspondng female ndustry coeffcents (β + δ, β + δ, β + δ, β + δ, β + δ and β + δ ).e., by the slope coeffcents δ, δ, δ, δ, δ, and δ of the female-ndustry nteracton terms f nd, f nd3, f nd, f nd, f nd, and f nd n Model. For ndustry : β + δ = the ndustry ndustry 1 dfference n mean ln-wages for females β = the ndustry ndustry 1 dfference n mean ln-wages for males Therefore δ = the ndustry ndustry 1 dfference n mean ln-wages for females mnus the ndustry ndustry 1 dfference n mean ln-wages for males Smlarly, for ndustres 3,,, and : δ = the ndustry 3 ndustry 1 dfference n mean ln-wages for females mnus the ndustry 3 ndustry 1 dfference n mean ln-wages for males δ = the ndustry ndustry 1 dfference n mean ln-wages for females mnus the ndustry ndustry 1 dfference n mean ln-wages for males δ = the ndustry ndustry 1 dfference n mean ln-wages for females mnus the ndustry ndustry 1 dfference n mean ln-wages for males δ = the ndustry ndustry 1 dfference n mean ln-wages for females mnus the ndustry ndustry 1 dfference n mean ln-wages for males ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page of 3 pages

10 ECONOMICS * -- Stata 11 Tutoral δ = the ndustry ndustry 1 dfference n mean ln-wages for females mnus the ndustry ndustry 1 dfference n mean ln-wages for males Note that the condtonal effects of ndustry on mean ln-wages are dentcal or equal for male and female workers f the regresson coeffcents δ, δ, δ, δ, δ and δ are jontly equal to zero:.e., f δ = δ = δ = δ = δ = δ =, or f δ j = for all j =,,,. OLS Estmaton of Model Estmate Model by OLS on the full sample of female and male employees. Enter the regress command: regress lnwage ed sq nd nd3 nd nd nd nd female fnd fnd3 fnd fnd fnd fnd Use lncom commands to compute and test the female ntercept coeffcent estmate and the female coeffcent estmates for the ndustry dummy varables nd, nd3, nd, nd, nd, and nd n Model. Enter the followng seres of lncom commands: + δˆ lncom _b[_cons] + _b[female] = lncom _b[nd] + _b[fnd] = βˆ ˆ + δ lncom _b[nd3] + _b[fnd3] = βˆ ˆ + δ lncom _b[nd] + _b[fnd] = βˆ ˆ + δ lncom _b[nd] + _b[fnd] = βˆ ˆ + δ lncom _b[nd] + _b[fnd] = βˆ ˆ + δ lncom _b[nd] + _b[fnd] = βˆ ˆ + δ βˆ ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 1 of 3 pages

11 ECONOMICS * -- Stata 11 Tutoral Test for Industry Effects n Model We now wsh to test for ndustry effects n Model. There are three such tests that should be performed. Industry Effects Test 1: Test for ndustry effects for male employees Test the null hypothess of no ndustry effects for male employees n Model. Snce ndustry effects for males n Model are represented by the male slope coeffcents β, β, β, β, β and β of the ndustry dummy varables nd, nd3, nd, nd, nd, and nd, the null and alternatve hypotheses are specfed as follows: H : β j = for all j =,,, ; or β = and β = and β = and β = and β = and β = H 1 : β j j =,,, ; or β and/or β and/or β and/or β and/or β and/or β Use the followng test command to compute an F-test of the null hypothess of no ndustry effects for male employees. Enter the commands: test nd nd3 nd nd nd nd return lst Based on the computed outcome of ths test, would you retan or reject the null hypothess of no ndustry effects for male workers? Industry Effects Test : Test for ndustry effects for female employees Test the null hypothess of no ndustry effects for female employees n Model. Snce ndustry effects for females n Model are represented by the female slope coeffcents β + δ, β + δ, β + δ, β + δ, β + δ and β + δ of the ndustry dummy varables nd, nd3, nd, nd, nd, and nd n the female ln-wage regresson functon, the null and alternatve hypotheses are specfed as follows: ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 11 of 3 pages

12 ECONOMICS * -- Stata 11 Tutoral H : β j + δ j = for all j =,,, ; or β + δ = and β + δ = and β + δ = and β + δ = and β + δ = and β + δ = H 1 : β j + δ j j =,,, ; or β + δ and/or β + δ and/or β + δ and/or β + δ and/or β + δ and/or β + δ Use the followng seres of lnked test commands to compute an F-test of the null hypothess of no ndustry effects for female employees. Enter the commands: test nd + fnd =, notest test nd3 + fnd3 =, notest accumulate test nd + fnd =, notest accumulate test nd + fnd =, notest accumulate test nd + fnd =, notest accumulate test nd + fnd =, accumulate return lst Note that only the results produced by the last of ths sequence of sx test commands correspond to the null hypothess H of no ndustry effects for female workers. That s why the notest opton has been specfed for the frst fve test commands n ths sequence; the notest opton smply suppresses the prntng of the results of the test command to whch t s attached. Based on the computed outcome of ths test, would you retan or reject the null hypothess of no ndustry effects for female workers? Industry Effects Test 3: Test for female-male dfferences n ndustry effects Test the null hypothess of no female-male dfferences n ndustry effects n Model. Snce the female-male dfferences n ndustry effects n Model are represented by the slope coeffcents δ, δ, δ, δ, δ and δ of the female nteractons wth the ndustry dummy varables nd, nd3, nd, nd, nd, and nd n Model, the null and alternatve hypotheses are specfed as follows: ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 1 of 3 pages

13 ECONOMICS * -- Stata 11 Tutoral H : δ j = for all j =,,, ; or δ = and δ = and δ = and δ = and δ = and δ = H 1 : δ j j =,,, ; or δ and/or δ and/or δ and/or δ and/or δ and/or δ Use the followng test command to compute an F-test of the null hypothess of no female-male dfferences n ndustry effects n Model,.e., that ndustry effects are equal, or dentcal, for male and female employees. Enter the commands: test fnd fnd3 fnd fnd fnd fnd return lst Based on the computed outcome of ths test, would you retan or reject the null hypothess of no ndustry effects for male workers? Note: If you have correctly computed the foregong test of no female-male dfferences n ndustry effects n Model, you wll have found that the null hypothess H s retaned at all conventonal sgnfcance levels. Despte ths test outcome, we wll, for pedagogcal reasons, proceed wth learnng how Stata graph bar commands can be used to graphcally llustrate the male and female ndustry effects n Model. But bear n mnd that ths test mples that ndustry effects n Model do not dffer sgnfcantly between male and female workers. Model -- Graphng Industry Effects for Male and Female Employees Ths secton demonstrates how to use the Stata graph bar command to graphcally llustrate the male and female ndustry effects we have estmated for Model. Before we can use the graph bar command, we must save the male and female ndustry coeffcent estmates for Model n a form that can be used n the graph bar command. Step 1: Generate a new varable that contans the values of the male ndustry coeffcent estmates for Model ;.e., create a varable that contans the OLS ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 13 of 3 pages

14 ECONOMICS * -- Stata 11 Tutoral estmates for Model of the male coeffcents for the ndustry dummy varables nd, nd3, nd, nd, nd, and nd n Model. Use the followng seres of generate and replace commands to create a new varable named malndcoefs_model that contans the OLS coeffcent estmates for Model of the male slope coeffcents β, β, β, β, β and β of the ndustry dummy varables nd, nd3, nd, nd, nd, and nd. Enter the followng seres of generate and replace commands: generate malndcoefs_model = _b[nd] f nd == 1 & female == replace malndcoefs_model = _b[nd3] f nd3 == 1 & female == replace malndcoefs_model = _b[nd] f nd == 1 & female == replace malndcoefs_model = _b[nd] f nd == 1 & female == replace malndcoefs_model = _b[nd] f nd == 1 & female == replace malndcoefs_model = _b[nd] f nd == 1 & female == Next, we should verfy that the varable malndcoefs_model we have just created does ndeed contan the OLS coeffcent estmates for Model of the male slope coeffcents β, β, β, β, β and β of the ndustry dummy varables nd, nd3, nd, nd, nd, and nd. Enter the followng seres of summarze commands: summarze malndcoefs_model f nd == 1 & female == summarze malndcoefs_model f nd3 == 1 & female == summarze malndcoefs_model f nd == 1 & female == summarze malndcoefs_model f nd == 1 & female == summarze malndcoefs_model f nd == 1 & female == summarze malndcoefs_model f nd == 1 & female == Fnally, enter the followng tab1 commands: tab1 ndustry malndcoefs_model, mssng tab1 ndustry malndcoefs_model table ndustry, contents(mean malndcoefs_model) ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 1 of 3 pages

15 ECONOMICS * -- Stata 11 Tutoral Step : Generate a new varable that contans the values of the female ndustry coeffcent estmates for Model ;.e., create a varable that contans the OLS estmates for Model of the female coeffcents for the ndustry dummy varables nd, nd3, nd, nd, nd, and nd n Model. Use the followng seres of generate and replace commands to create a new varable named femndcoefs_model that contans the OLS coeffcent estmates for Model of the female slope coeffcents β + δ, β + δ, β + δ, β + δ, β + δ and β + δ of the ndustry dummy varables nd, nd3, nd, nd, nd, and nd. Enter the followng seres of generate and replace commands: generate femndcoefs_model = _b[nd] + _b[fnd] f nd == 1 & female == 1 replace femndcoefs_model = _b[nd3] + _b[fnd3] f nd3 == 1 & female == 1 replace femndcoefs_model = _b[nd] + _b[fnd] f nd == 1 & female == 1 replace femndcoefs_model = _b[nd] + _b[fnd] f nd == 1 & female == 1 replace femndcoefs_model = _b[nd] + _b[fnd] f nd == 1 & female == 1 replace femndcoefs_model = _b[nd] + _b[fnd] f nd == 1 & female == 1 Next, verfy that the varable femndcoefs_model we have just created does ndeed contan the OLS coeffcent estmates for Model of the female slope coeffcents β + δ, β + δ, β + δ, β + δ, β + δ and β + δ of the ndustry dummy varables nd, nd3, nd, nd, nd, and nd. Enter the followng seres of summarze commands: summarze femndcoefs_model f nd == 1 & female == 1 summarze femndcoefs_model f nd3 == 1 & female == 1 summarze femndcoefs_model f nd == 1 & female == 1 summarze femndcoefs_model f nd == 1 & female == 1 summarze femndcoefs_model f nd == 1 & female == 1 summarze femndcoefs_model f nd == 1 & female == 1 Fnally, enter the followng tab1 commands: ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 1 of 3 pages

16 ECONOMICS * -- Stata 11 Tutoral tab1 ndustry femndcoefs_model, mssng tab1 ndustry femndcoefs_model table ndustry, contents(mean femndcoefs_model) table ndustry, contents(mean malndcoefs_model mean femndcoefs_model) Step 3: We can now use the newly created varables malndcoefs_model and femndcoefs_model to draw a bar graph of the estmated male and female ndustry effects n Model. Use the followng basc graph bar command to create a frst bar graph of the estmated male and female ndustry effects n Model. Enter the graph bar command: graph bar (mean) malndcoefs_model femndcoefs_model f ndustry > 1, over(ndustry) We can produce a more complete and nformatve bar graph by addng to the above graph bar command some addtonal optons that label the bars as Male or Female, that provde a ttle for the vertcal y-axs, and that provde a ttle for the entre graph. Enter the followng anded graph bar command: graph bar (mean) malndcoefs_model femndcoefs_model f ndustry > 1, over(ndustry) legend ( label(1 "Male") label( "Female") ) yttle("mean ndustry ln-wage dfference" "relatve to ndustry 1 (log ponts)") ttle("mean Ln-Wage Dfferences Relatve to Industry 1," "Industres to by Gender -- Model ") Carefully observe how the graph bar optons legend, yttle and ttle have been used to provde a more fnshed and complete bar graph. To ort and save ths bar graph n Wndows Enhanced Metafle format to a fle named bargraph1_tutoral.emf n the current Stata workng drectory, enter the graph ort command: graph ort bargraph1_tutoral.emf ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 1 of 3 pages

17 ECONOMICS * -- Stata 11 Tutoral Here s what the bar graph you just orted n Wndows Enhanced Metafle format to the fle bargraph1_tutoral.emf looks lke when t s nserted nto ths MS Word document: Mean Ln-Wage Dfferences Relatve to Industry 1, Industres to by Gender, Model mean ndustry ln-wage dfference relatve to ndustry 1 (log ponts) Industry Industry 3 Industry Industry Industry Industry Male Female You can produce a horzontal verson of the bar graph you have just created by usng the graph hbar command rather than the graph bar command. Enter the followng anded graph hbar command: graph hbar (mean) malndcoefs_model femndcoefs_model f ndustry > 1, over(ndustry) legend ( label(1 "Male") label( "Female") ) yttle("mean ndustry ln-wage dfference" "relatve to ndustry 1 (log ponts)") ttle("mean Ln-Wage Dfferences Relatve to Industry 1," "Industres to by Gender -- Model ") Note that the above command s dentcal to the graph bar command on the prevous page except for the use of the graph hbar command. Agan observe how the graph hbar optons legend, yttle and ttle have been used to provde a more fnshed and complete bar graph. ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 1 of 3 pages

18 ECONOMICS * -- Stata 11 Tutoral To ort and save ths bar graph n Wndows Enhanced Metafle format to a fle named bargraph_tutoral.emf n the current Stata workng drectory, enter the graph ort command: graph ort bargraph_tutoral.emf Here s what the horzontal bar graph you just orted n Wndows Enhanced Metafle format to the fle bargraph_tutoral.emf looks lke when t s nserted nto ths MS Word document: Mean Ln-Wage Dfferences Relatve to Industry 1, Industres to by Gender, Model Industry Industry 3 Industry Industry Industry Industry mean ndustry ln-wage dfference relatve to ndustry 1 (log ponts) Male Female ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 1 of 3 pages

19 ECONOMICS * -- Stata 11 Tutoral A Thrd Bar Graph Depctng the Industry Effects for Males and Females Fnally, we can use an alternatve graph hbar command to create a second horzontal bar graph that depcts the ndustry effects for male and female workers estmated n Model. But frst we must save the male and female ndustry coeffcent estmates for Model n a form that can be used n the graph hbar command. Step 1: Generate a new varable that contans the values of the male ndustry coeffcent estmates for Model ;.e., create a varable that contans the OLS estmates for Model of the male coeffcents for the ndustry dummy varables nd, nd3, nd, nd, nd, and nd n Model. Use the followng seres of generate and replace commands to create a new varable named allndcoefs_model that contans the OLS coeffcent estmates for Model of both the male slope coeffcents β, β, β, β, β and β of the ndustry dummy varables nd, nd3, nd, nd, nd, and nd and the female slope coeffcents β + δ, β + δ, β + δ, β + δ, β + δ and β + δ of the ndustry dummy varables nd, nd3, nd, nd, nd, and nd. Enter the followng seres of generate and replace commands: generate allndcoefs_model = _b[nd] f nd == 1 & female == replace allndcoefs_model = _b[nd3] f nd3 == 1 & female == replace allndcoefs_model = _b[nd] f nd == 1 & female == replace allndcoefs_model = _b[nd] f nd == 1 & female == replace allndcoefs_model = _b[nd] f nd == 1 & female == replace allndcoefs_model = _b[nd] f nd == 1 & female == replace allndcoefs_model = _b[nd] + _b[fnd] f nd == 1 & female == 1 replace allndcoefs_model = _b[nd3] + _b[fnd3] f nd3 == 1 & female == 1 replace allndcoefs_model = _b[nd] + _b[fnd] f nd == 1 & female == 1 replace allndcoefs_model = _b[nd] + _b[fnd] f nd == 1 & female == 1 ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 1 of 3 pages

20 ECONOMICS * -- Stata 11 Tutoral replace allndcoefs_model = _b[nd] + _b[fnd] f nd == 1 & female == 1 replace allndcoefs_model = _b[nd] + _b[fnd] f nd == 1 & female == 1 Next, verfy that the varable allndcoefs_model we have just created does ndeed contan the OLS coeffcent estmates for Model of both the male slope coeffcents β, β, β, β, β and β and the female slope coeffcents β + δ, β + δ, β + δ, β + δ, β + δ and β + δ of the ndustry dummy varables nd, nd3, nd, nd, nd, and nd. Enter the followng seres of summarze commands: summarze allndcoefs_model f nd == 1 & female == summarze allndcoefs_model f nd3 == 1 & female == summarze allndcoefs_model f nd == 1 & female == summarze allndcoefs_model f nd == 1 & female == summarze allndcoefs_model f nd == 1 & female == summarze allndcoefs_model f nd == 1 & female == summarze allndcoefs_model f nd == 1 & female == 1 summarze allndcoefs_model f nd3 == 1 & female == 1 summarze allndcoefs_model f nd == 1 & female == 1 summarze allndcoefs_model f nd == 1 & female == 1 summarze allndcoefs_model f nd == 1 & female == 1 summarze allndcoefs_model f nd == 1 & female == 1 Fnally, enter the followng tab1 and tab commands: tab1 ndustry allndcoefs_model f female ==, mssng tab1 ndustry allndcoefs_model f female == 1, mssng tab allndcoefs_model female, mssng tab ndustry female, mssng Careful nspecton of the results of these tab1 and tab commands wll enable you to verfy that the newly created varable allndcoefs_model does ndeed contan the OLS coeffcent estmates for Model of both the male slope coeffcents β, β, β, β, β and β and the female slope coeffcents β + δ, β + δ, β + δ, β + δ, β + δ and β + δ of the ndustry dummy varables nd, nd3, nd, nd, nd, and nd. ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page of 3 pages

21 ECONOMICS * -- Stata 11 Tutoral Step : We can now use the newly created varable allndcoefs_model to draw a horzontal bar graph of the estmated male and female ndustry effects n Model. Use the followng basc graph hbar command to create a frst horzontal bar graph of the estmated male and female ndustry effects n Model. Enter the graph bar command: graph hbar (mean) allndcoefs_model f ndustry > 1, over(female) over(ndustry) Note that the above graph hbar command ncludes both the over(female) and the over(ndustry) optons. We can produce a more complete and nformatve bar graph by addng to the above graph hbar command some addtonal optons that provde a ttle for the vertcal y-axs, and that provde a ttle for the entre graph. Enter the followng anded graph hbar command: graph hbar (mean) allndcoefs_model f ndustry > 1, over(female) over(ndustry) yttle("mean ndustry ln-wage dfference" "relatve to ndustry 1 (log ponts)") ttle("mean Ln-Wage Dfferences Relatve to Industry 1," "Industres to by Gender, Model ", span) Note that the opton span s specfed n the ttle( ) porton of the above graph hbar command; t centers the ttle over the entre graph rather than over the plot regon. To ort and save ths bar graph n Wndows Enhanced Metafle format to a fle named bargraph3_tutoral.emf n the current Stata workng drectory, enter the graph ort command: graph ort bargraph3_tutoral.emf ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 1 of 3 pages

22 ECONOMICS * -- Stata 11 Tutoral Here s what the horzontal bar graph you just orted n Wndows Enhanced Metafle format to the fle bargraph3_tutoral.emf looks lke when t s nserted nto ths MS Word document: Mean Ln-Wage Dfferences Relatve to Industry 1, Industres to by Gender, Model Industry Industry 3 Industry Industry Industry Industry Male Female Male Female Male Female Male Female Male Female Male Female mean ndustry ln-wage dfference relatve to ndustry 1 (log ponts) ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page of 3 pages

23 ECONOMICS * -- Stata 11 Tutoral Preparng to End Your Stata Sesson Before you end your Stata sesson, you should do two thngs. Frst, you wll probably want to save the current dataset. Enter the followng save command wth the replace opton to save the current dataset as Stata-format dataset wage1_econ.dta: save wage1_econ, replace Second, close the log fle you have been recordng. Enter the command: log close Fnally, close the command log fle you have been recordng. Enter the command: cmdlog close End Your Stata Sesson -- ext To end your Stata sesson, use the ext command. Enter the command: ext or ext, clear Cleanng Up and Clearng Out After returnng to Wndows, you should copy all the fles you have used and created durng your Stata sesson to your own portable electronc storage devce such as a flash memory stck. These fles wll be found n the Stata workng drectory, whch s usually C:\data on the computers n Dunnng 3. There are three fles you wll want to be sure you have: the complete Stata log fle tutoral.log; the Stata command log fle tutoral.txt; and the changed Stata-format dataset wage1_econ.dta. Use the Wndows copy command to copy any fles you want to keep to your own portable electronc storage devce (e.g., a flash memory stck). Fnally, as a courtesy to other users of the computng classroom, please delete all the fles you have used or created from the Stata workng drectory. ECON * -- Fall 11: Stata 11 Tutoral tutoral_f11.doc Page 3 of 3 pages

ECONOMICS 452* -- Stata 12 Tutorial 6. Stata 12 Tutorial 6. TOPIC: Representing Multi-Category Categorical Variables with Dummy Variable Regressors

ECONOMICS 452* -- Stata 12 Tutorial 6. Stata 12 Tutorial 6. TOPIC: Representing Multi-Category Categorical Variables with Dummy Variable Regressors ECONOMICS 45* -- Stata 1 Tutoral 6 Stata 1 Tutoral 6 TOPIC: Representng Mult-Category Categorcal Varables wth Dummy Varable Regressors DATA: wage1_econ45.dta (a Stata-format dataset) TASKS: Stata 1 Tutoral

More information

Stata 12/13 Tutorial 4

Stata 12/13 Tutorial 4 Stata /3 Tutoral 4 TOPIC: Condtonal and Margnal Effects of Contnuous Explanatory Varables n Lnear Regresson Models DATA: auto.dta (a Stata-format dataset frst created n Stata /3 Tutoral ) TASKS: Stata

More information

Support Vector Machines

Support Vector Machines /9/207 MIST.6060 Busness Intellgence and Data Mnng What are Support Vector Machnes? Support Vector Machnes Support Vector Machnes (SVMs) are supervsed learnng technques that analyze data and recognze patterns.

More information

X- Chart Using ANOM Approach

X- Chart Using ANOM Approach ISSN 1684-8403 Journal of Statstcs Volume 17, 010, pp. 3-3 Abstract X- Chart Usng ANOM Approach Gullapall Chakravarth 1 and Chaluvad Venkateswara Rao Control lmts for ndvdual measurements (X) chart are

More information

TN348: Openlab Module - Colocalization

TN348: Openlab Module - Colocalization TN348: Openlab Module - Colocalzaton Topc The Colocalzaton module provdes the faclty to vsualze and quantfy colocalzaton between pars of mages. The Colocalzaton wndow contans a prevew of the two mages

More information

Synthesizer 1.0. User s Guide. A Varying Coefficient Meta. nalytic Tool. Z. Krizan Employing Microsoft Excel 2007

Synthesizer 1.0. User s Guide. A Varying Coefficient Meta. nalytic Tool. Z. Krizan Employing Microsoft Excel 2007 Syntheszer 1.0 A Varyng Coeffcent Meta Meta-Analytc nalytc Tool Employng Mcrosoft Excel 007.38.17.5 User s Gude Z. Krzan 009 Table of Contents 1. Introducton and Acknowledgments 3. Operatonal Functons

More information

Life Tables (Times) Summary. Sample StatFolio: lifetable times.sgp

Life Tables (Times) Summary. Sample StatFolio: lifetable times.sgp Lfe Tables (Tmes) Summary... 1 Data Input... 2 Analyss Summary... 3 Survval Functon... 5 Log Survval Functon... 6 Cumulatve Hazard Functon... 7 Percentles... 7 Group Comparsons... 8 Summary The Lfe Tables

More information

y and the total sum of

y and the total sum of Lnear regresson Testng for non-lnearty In analytcal chemstry, lnear regresson s commonly used n the constructon of calbraton functons requred for analytcal technques such as gas chromatography, atomc absorpton

More information

UNIT 2 : INEQUALITIES AND CONVEX SETS

UNIT 2 : INEQUALITIES AND CONVEX SETS UNT 2 : NEQUALTES AND CONVEX SETS ' Structure 2. ntroducton Objectves, nequaltes and ther Graphs Convex Sets and ther Geometry Noton of Convex Sets Extreme Ponts of Convex Set Hyper Planes and Half Spaces

More information

The Codesign Challenge

The Codesign Challenge ECE 4530 Codesgn Challenge Fall 2007 Hardware/Software Codesgn The Codesgn Challenge Objectves In the codesgn challenge, your task s to accelerate a gven software reference mplementaton as fast as possble.

More information

Econometrics 2. Panel Data Methods. Advanced Panel Data Methods I

Econometrics 2. Panel Data Methods. Advanced Panel Data Methods I Panel Data Methods Econometrcs 2 Advanced Panel Data Methods I Last tme: Panel data concepts and the two-perod case (13.3-4) Unobserved effects model: Tme-nvarant and dosyncratc effects Omted varables

More information

S1 Note. Basis functions.

S1 Note. Basis functions. S1 Note. Bass functons. Contents Types of bass functons...1 The Fourer bass...2 B-splne bass...3 Power and type I error rates wth dfferent numbers of bass functons...4 Table S1. Smulaton results of type

More information

NAG Fortran Library Chapter Introduction. G10 Smoothing in Statistics

NAG Fortran Library Chapter Introduction. G10 Smoothing in Statistics Introducton G10 NAG Fortran Lbrary Chapter Introducton G10 Smoothng n Statstcs Contents 1 Scope of the Chapter... 2 2 Background to the Problems... 2 2.1 Smoothng Methods... 2 2.2 Smoothng Splnes and Regresson

More information

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour 6.854 Advanced Algorthms Petar Maymounkov Problem Set 11 (November 23, 2005) Wth: Benjamn Rossman, Oren Wemann, and Pouya Kheradpour Problem 1. We reduce vertex cover to MAX-SAT wth weghts, such that the

More information

Solutions to Programming Assignment Five Interpolation and Numerical Differentiation

Solutions to Programming Assignment Five Interpolation and Numerical Differentiation College of Engneerng and Coputer Scence Mechancal Engneerng Departent Mechancal Engneerng 309 Nuercal Analyss of Engneerng Systes Sprng 04 Nuber: 537 Instructor: Larry Caretto Solutons to Prograng Assgnent

More information

LOOP ANALYSIS. The second systematic technique to determine all currents and voltages in a circuit

LOOP ANALYSIS. The second systematic technique to determine all currents and voltages in a circuit LOOP ANALYSS The second systematic technique to determine all currents and voltages in a circuit T S DUAL TO NODE ANALYSS - T FRST DETERMNES ALL CURRENTS N A CRCUT AND THEN T USES OHM S LAW TO COMPUTE

More information

Simulation: Solving Dynamic Models ABE 5646 Week 11 Chapter 2, Spring 2010

Simulation: Solving Dynamic Models ABE 5646 Week 11 Chapter 2, Spring 2010 Smulaton: Solvng Dynamc Models ABE 5646 Week Chapter 2, Sprng 200 Week Descrpton Readng Materal Mar 5- Mar 9 Evaluatng [Crop] Models Comparng a model wth data - Graphcal, errors - Measures of agreement

More information

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following.

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following. Complex Numbers The last topc n ths secton s not really related to most of what we ve done n ths chapter, although t s somewhat related to the radcals secton as we wll see. We also won t need the materal

More information

Problem Set 3 Solutions

Problem Set 3 Solutions Introducton to Algorthms October 4, 2002 Massachusetts Insttute of Technology 6046J/18410J Professors Erk Demane and Shaf Goldwasser Handout 14 Problem Set 3 Solutons (Exercses were not to be turned n,

More information

Optimization Methods: Integer Programming Integer Linear Programming 1. Module 7 Lecture Notes 1. Integer Linear Programming

Optimization Methods: Integer Programming Integer Linear Programming 1. Module 7 Lecture Notes 1. Integer Linear Programming Optzaton Methods: Integer Prograng Integer Lnear Prograng Module Lecture Notes Integer Lnear Prograng Introducton In all the prevous lectures n lnear prograng dscussed so far, the desgn varables consdered

More information

Brave New World Pseudocode Reference

Brave New World Pseudocode Reference Brave New World Pseudocode Reference Pseudocode s a way to descrbe how to accomplsh tasks usng basc steps lke those a computer mght perform. In ths week s lab, you'll see how a form of pseudocode can be

More information

Parameter estimation for incomplete bivariate longitudinal data in clinical trials

Parameter estimation for incomplete bivariate longitudinal data in clinical trials Parameter estmaton for ncomplete bvarate longtudnal data n clncal trals Naum M. Khutoryansky Novo Nordsk Pharmaceutcals, Inc., Prnceton, NJ ABSTRACT Bvarate models are useful when analyzng longtudnal data

More information

Lecture 5: Multilayer Perceptrons

Lecture 5: Multilayer Perceptrons Lecture 5: Multlayer Perceptrons Roger Grosse 1 Introducton So far, we ve only talked about lnear models: lnear regresson and lnear bnary classfers. We noted that there are functons that can t be represented

More information

Mathematics 256 a course in differential equations for engineering students

Mathematics 256 a course in differential equations for engineering students Mathematcs 56 a course n dfferental equatons for engneerng students Chapter 5. More effcent methods of numercal soluton Euler s method s qute neffcent. Because the error s essentally proportonal to the

More information

2x x l. Module 3: Element Properties Lecture 4: Lagrange and Serendipity Elements

2x x l. Module 3: Element Properties Lecture 4: Lagrange and Serendipity Elements Module 3: Element Propertes Lecture : Lagrange and Serendpty Elements 5 In last lecture note, the nterpolaton functons are derved on the bass of assumed polynomal from Pascal s trangle for the fled varable.

More information

Steps for Computing the Dissimilarity, Entropy, Herfindahl-Hirschman and. Accessibility (Gravity with Competition) Indices

Steps for Computing the Dissimilarity, Entropy, Herfindahl-Hirschman and. Accessibility (Gravity with Competition) Indices Steps for Computng the Dssmlarty, Entropy, Herfndahl-Hrschman and Accessblty (Gravty wth Competton) Indces I. Dssmlarty Index Measurement: The followng formula can be used to measure the evenness between

More information

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1)

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1) Secton 1.2 Subsets and the Boolean operatons on sets If every element of the set A s an element of the set B, we say that A s a subset of B, or that A s contaned n B, or that B contans A, and we wrte A

More information

Exercises (Part 4) Introduction to R UCLA/CCPR. John Fox, February 2005

Exercises (Part 4) Introduction to R UCLA/CCPR. John Fox, February 2005 Exercses (Part 4) Introducton to R UCLA/CCPR John Fox, February 2005 1. A challengng problem: Iterated weghted least squares (IWLS) s a standard method of fttng generalzed lnear models to data. As descrbed

More information

Hermite Splines in Lie Groups as Products of Geodesics

Hermite Splines in Lie Groups as Products of Geodesics Hermte Splnes n Le Groups as Products of Geodescs Ethan Eade Updated May 28, 2017 1 Introducton 1.1 Goal Ths document defnes a curve n the Le group G parametrzed by tme and by structural parameters n the

More information

Intro. Iterators. 1. Access

Intro. Iterators. 1. Access Intro Ths mornng I d lke to talk a lttle bt about s and s. We wll start out wth smlartes and dfferences, then we wll see how to draw them n envronment dagrams, and we wll fnsh wth some examples. Happy

More information

Empirical Distributions of Parameter Estimates. in Binary Logistic Regression Using Bootstrap

Empirical Distributions of Parameter Estimates. in Binary Logistic Regression Using Bootstrap Int. Journal of Math. Analyss, Vol. 8, 4, no. 5, 7-7 HIKARI Ltd, www.m-hkar.com http://dx.do.org/.988/jma.4.494 Emprcal Dstrbutons of Parameter Estmates n Bnary Logstc Regresson Usng Bootstrap Anwar Ftranto*

More information

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz Compler Desgn Sprng 2014 Regster Allocaton Sample Exercses and Solutons Prof. Pedro C. Dnz USC / Informaton Scences Insttute 4676 Admralty Way, Sute 1001 Marna del Rey, Calforna 90292 pedro@s.edu Regster

More information

CMPS 10 Introduction to Computer Science Lecture Notes

CMPS 10 Introduction to Computer Science Lecture Notes CPS 0 Introducton to Computer Scence Lecture Notes Chapter : Algorthm Desgn How should we present algorthms? Natural languages lke Englsh, Spansh, or French whch are rch n nterpretaton and meanng are not

More information

Why visualisation? IRDS: Visualization. Univariate data. Visualisations that we won t be interested in. Graphics provide little additional information

Why visualisation? IRDS: Visualization. Univariate data. Visualisations that we won t be interested in. Graphics provide little additional information Why vsualsaton? IRDS: Vsualzaton Charles Sutton Unversty of Ednburgh Goal : Have a data set that I want to understand. Ths s called exploratory data analyss. Today s lecture. Goal II: Want to dsplay data

More information

USING GRAPHING SKILLS

USING GRAPHING SKILLS Name: BOLOGY: Date: _ Class: USNG GRAPHNG SKLLS NTRODUCTON: Recorded data can be plotted on a graph. A graph s a pctoral representaton of nformaton recorded n a data table. t s used to show a relatonshp

More information

Notes on Organizing Java Code: Packages, Visibility, and Scope

Notes on Organizing Java Code: Packages, Visibility, and Scope Notes on Organzng Java Code: Packages, Vsblty, and Scope CS 112 Wayne Snyder Java programmng n large measure s a process of defnng enttes (.e., packages, classes, methods, or felds) by name and then usng

More information

Feature Reduction and Selection

Feature Reduction and Selection Feature Reducton and Selecton Dr. Shuang LIANG School of Software Engneerng TongJ Unversty Fall, 2012 Today s Topcs Introducton Problems of Dmensonalty Feature Reducton Statstc methods Prncpal Components

More information

R s s f. m y s. SPH3UW Unit 7.3 Spherical Concave Mirrors Page 1 of 12. Notes

R s s f. m y s. SPH3UW Unit 7.3 Spherical Concave Mirrors Page 1 of 12. Notes SPH3UW Unt 7.3 Sphercal Concave Mrrors Page 1 of 1 Notes Physcs Tool box Concave Mrror If the reflectng surface takes place on the nner surface of the sphercal shape so that the centre of the mrror bulges

More information

The BGLR (Bayesian Generalized Linear Regression) R- Package. Gustavo de los Campos, Amit Pataki & Paulino Pérez. (August- 2013)

The BGLR (Bayesian Generalized Linear Regression) R- Package. Gustavo de los Campos, Amit Pataki & Paulino Pérez. (August- 2013) Bostatstcs Department Bayesan Generalzed Lnear Regresson (BGLR) The BGLR (Bayesan Generalzed Lnear Regresson) R- Package By Gustavo de los Campos, Amt Patak & Paulno Pérez (August- 03) (contact: gdeloscampos@gmal.com

More information

Machine Learning 9. week

Machine Learning 9. week Machne Learnng 9. week Mappng Concept Radal Bass Functons (RBF) RBF Networks 1 Mappng It s probably the best scenaro for the classfcaton of two dataset s to separate them lnearly. As you see n the below

More information

An Optimal Algorithm for Prufer Codes *

An Optimal Algorithm for Prufer Codes * J. Software Engneerng & Applcatons, 2009, 2: 111-115 do:10.4236/jsea.2009.22016 Publshed Onlne July 2009 (www.scrp.org/journal/jsea) An Optmal Algorthm for Prufer Codes * Xaodong Wang 1, 2, Le Wang 3,

More information

EXST7034 Regression Techniques Geaghan Logistic regression Diagnostics Page 1

EXST7034 Regression Techniques Geaghan Logistic regression Diagnostics Page 1 Logstc regresson Dagnostcs Page 1 1 **********************************************************; 2 *** Logstc Regresson - Dsease outbreak example ***; 3 *** NKNW table 14.3 (Appendx C3) ***; 4 *** Study

More information

Analysis of Malaysian Wind Direction Data Using ORIANA

Analysis of Malaysian Wind Direction Data Using ORIANA Modern Appled Scence March, 29 Analyss of Malaysan Wnd Drecton Data Usng ORIANA St Fatmah Hassan (Correspondng author) Centre for Foundaton Studes n Scence Unversty of Malaya, 63 Kuala Lumpur, Malaysa

More information

User Authentication Based On Behavioral Mouse Dynamics Biometrics

User Authentication Based On Behavioral Mouse Dynamics Biometrics User Authentcaton Based On Behavoral Mouse Dynamcs Bometrcs Chee-Hyung Yoon Danel Donghyun Km Department of Computer Scence Department of Computer Scence Stanford Unversty Stanford Unversty Stanford, CA

More information

The Grouping Methods and Rank Estimator, Based on Ranked Set sampling, for the linear Error in Variable Models

The Grouping Methods and Rank Estimator, Based on Ranked Set sampling, for the linear Error in Variable Models P Internatonal Journal of Scentfc Engneerng and Appled Scence (IJSEAS) Volume-, Issue-7,Jul 06 The Groupng Methods and Rank Estmator, Based on Ranked Set samplng, for the lnear Error n Varable Models Ahmed

More information

Air Transport Demand. Ta-Hui Yang Associate Professor Department of Logistics Management National Kaohsiung First Univ. of Sci. & Tech.

Air Transport Demand. Ta-Hui Yang Associate Professor Department of Logistics Management National Kaohsiung First Univ. of Sci. & Tech. Ar Transport Demand Ta-Hu Yang Assocate Professor Department of Logstcs Management Natonal Kaohsung Frst Unv. of Sc. & Tech. 1 Ar Transport Demand Demand for ar transport between two ctes or two regons

More information

Programming in Fortran 90 : 2017/2018

Programming in Fortran 90 : 2017/2018 Programmng n Fortran 90 : 2017/2018 Programmng n Fortran 90 : 2017/2018 Exercse 1 : Evaluaton of functon dependng on nput Wrte a program who evaluate the functon f (x,y) for any two user specfed values

More information

Lecture #15 Lecture Notes

Lecture #15 Lecture Notes Lecture #15 Lecture Notes The ocean water column s very much a 3-D spatal entt and we need to represent that structure n an economcal way to deal wth t n calculatons. We wll dscuss one way to do so, emprcal

More information

Signature and Lexicon Pruning Techniques

Signature and Lexicon Pruning Techniques Sgnature and Lexcon Prunng Technques Srnvas Palla, Hansheng Le, Venu Govndaraju Centre for Unfed Bometrcs and Sensors Unversty at Buffalo {spalla2, hle, govnd}@cedar.buffalo.edu Abstract Handwrtten word

More information

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009.

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009. Farrukh Jabeen Algorthms 51 Assgnment #2 Due Date: June 15, 29. Assgnment # 2 Chapter 3 Dscrete Fourer Transforms Implement the FFT for the DFT. Descrbed n sectons 3.1 and 3.2. Delverables: 1. Concse descrpton

More information

with Optic65 and Optic25 Cameras FOR OUTDOOR TRACKING ONLY unless used in conjunction with the Indoor Tracking Accessory.

with Optic65 and Optic25 Cameras FOR OUTDOOR TRACKING ONLY unless used in conjunction with the Indoor Tracking Accessory. wth Optc6 and Optc Cameras Quck Start Gude FOR OUTDOOR TRACKING ONLY unless used n conjuncton wth the Indoor Trackng Accessory. CONGRATULATIONS ON SCORING YOUR SOLOSHOT Our category-creatng lne of personal

More information

A Semi-parametric Regression Model to Estimate Variability of NO 2

A Semi-parametric Regression Model to Estimate Variability of NO 2 Envronment and Polluton; Vol. 2, No. 1; 2013 ISSN 1927-0909 E-ISSN 1927-0917 Publshed by Canadan Center of Scence and Educaton A Sem-parametrc Regresson Model to Estmate Varablty of NO 2 Meczysław Szyszkowcz

More information

APPLICATION OF MULTIVARIATE LOSS FUNCTION FOR ASSESSMENT OF THE QUALITY OF TECHNOLOGICAL PROCESS MANAGEMENT

APPLICATION OF MULTIVARIATE LOSS FUNCTION FOR ASSESSMENT OF THE QUALITY OF TECHNOLOGICAL PROCESS MANAGEMENT 3. - 5. 5., Brno, Czech Republc, EU APPLICATION OF MULTIVARIATE LOSS FUNCTION FOR ASSESSMENT OF THE QUALITY OF TECHNOLOGICAL PROCESS MANAGEMENT Abstract Josef TOŠENOVSKÝ ) Lenka MONSPORTOVÁ ) Flp TOŠENOVSKÝ

More information

FEATURE EXTRACTION. Dr. K.Vijayarekha. Associate Dean School of Electrical and Electronics Engineering SASTRA University, Thanjavur

FEATURE EXTRACTION. Dr. K.Vijayarekha. Associate Dean School of Electrical and Electronics Engineering SASTRA University, Thanjavur FEATURE EXTRACTION Dr. K.Vjayarekha Assocate Dean School of Electrcal and Electroncs Engneerng SASTRA Unversty, Thanjavur613 41 Jont Intatve of IITs and IISc Funded by MHRD Page 1 of 8 Table of Contents

More information

CS 534: Computer Vision Model Fitting

CS 534: Computer Vision Model Fitting CS 534: Computer Vson Model Fttng Sprng 004 Ahmed Elgammal Dept of Computer Scence CS 534 Model Fttng - 1 Outlnes Model fttng s mportant Least-squares fttng Maxmum lkelhood estmaton MAP estmaton Robust

More information

SVM-based Learning for Multiple Model Estimation

SVM-based Learning for Multiple Model Estimation SVM-based Learnng for Multple Model Estmaton Vladmr Cherkassky and Yunqan Ma Department of Electrcal and Computer Engneerng Unversty of Mnnesota Mnneapols, MN 55455 {cherkass,myq}@ece.umn.edu Abstract:

More information

This module is part of the. Memobust Handbook. on Methodology of Modern Business Statistics

This module is part of the. Memobust Handbook. on Methodology of Modern Business Statistics Ths module s part of the Memobust Handbook on Methodology of Modern Busness Statstcs 26 March 2014 Theme: Donor Imputaton Contents General secton... 3 1. Summary... 3 2. General descrpton... 3 2.1 Introducton

More information

A CLASS OF TRANSFORMED EFFICIENT RATIO ESTIMATORS OF FINITE POPULATION MEAN. Department of Statistics, Islamia College, Peshawar, Pakistan 2

A CLASS OF TRANSFORMED EFFICIENT RATIO ESTIMATORS OF FINITE POPULATION MEAN. Department of Statistics, Islamia College, Peshawar, Pakistan 2 Pa. J. Statst. 5 Vol. 3(4), 353-36 A CLASS OF TRANSFORMED EFFICIENT RATIO ESTIMATORS OF FINITE POPULATION MEAN Sajjad Ahmad Khan, Hameed Al, Sadaf Manzoor and Alamgr Department of Statstcs, Islama College,

More information

AVO Modeling of Monochromatic Spherical Waves: Comparison to Band-Limited Waves

AVO Modeling of Monochromatic Spherical Waves: Comparison to Band-Limited Waves AVO Modelng of Monochromatc Sphercal Waves: Comparson to Band-Lmted Waves Charles Ursenbach* Unversty of Calgary, Calgary, AB, Canada ursenbach@crewes.org and Arnm Haase Unversty of Calgary, Calgary, AB,

More information

Parallelism for Nested Loops with Non-uniform and Flow Dependences

Parallelism for Nested Loops with Non-uniform and Flow Dependences Parallelsm for Nested Loops wth Non-unform and Flow Dependences Sam-Jn Jeong Dept. of Informaton & Communcaton Engneerng, Cheonan Unversty, 5, Anseo-dong, Cheonan, Chungnam, 330-80, Korea. seong@cheonan.ac.kr

More information

An Image Fusion Approach Based on Segmentation Region

An Image Fusion Approach Based on Segmentation Region Rong Wang, L-Qun Gao, Shu Yang, Yu-Hua Cha, and Yan-Chun Lu An Image Fuson Approach Based On Segmentaton Regon An Image Fuson Approach Based on Segmentaton Regon Rong Wang, L-Qun Gao, Shu Yang 3, Yu-Hua

More information

Determining the Optimal Bandwidth Based on Multi-criterion Fusion

Determining the Optimal Bandwidth Based on Multi-criterion Fusion Proceedngs of 01 4th Internatonal Conference on Machne Learnng and Computng IPCSIT vol. 5 (01) (01) IACSIT Press, Sngapore Determnng the Optmal Bandwdth Based on Mult-crteron Fuson Ha-L Lang 1+, Xan-Mn

More information

mquest Quickstart Version 11.0

mquest Quickstart Version 11.0 mquest Quckstart Verson 11.0 cluetec GmbH Emmy-Noether-Straße 17 76131 Karlsruhe Germany www.cluetec.de www.mquest.nfo cluetec GmbH Karlsruhe, 2016 Document verson 5 27.04.2016 16:59 > Propretary notce

More information

A Binarization Algorithm specialized on Document Images and Photos

A Binarization Algorithm specialized on Document Images and Photos A Bnarzaton Algorthm specalzed on Document mages and Photos Ergna Kavalleratou Dept. of nformaton and Communcaton Systems Engneerng Unversty of the Aegean kavalleratou@aegean.gr Abstract n ths paper, a

More information

Term Weighting Classification System Using the Chi-square Statistic for the Classification Subtask at NTCIR-6 Patent Retrieval Task

Term Weighting Classification System Using the Chi-square Statistic for the Classification Subtask at NTCIR-6 Patent Retrieval Task Proceedngs of NTCIR-6 Workshop Meetng, May 15-18, 2007, Tokyo, Japan Term Weghtng Classfcaton System Usng the Ch-square Statstc for the Classfcaton Subtask at NTCIR-6 Patent Retreval Task Kotaro Hashmoto

More information

A DATA ANALYSIS CODE FOR MCNP MESH AND STANDARD TALLIES

A DATA ANALYSIS CODE FOR MCNP MESH AND STANDARD TALLIES Supercomputng n uclear Applcatons (M&C + SA 007) Monterey, Calforna, Aprl 15-19, 007, on CD-ROM, Amercan uclear Socety, LaGrange Par, IL (007) A DATA AALYSIS CODE FOR MCP MESH AD STADARD TALLIES Kenneth

More information

C2 Training: June 8 9, Combining effect sizes across studies. Create a set of independent effect sizes. Introduction to meta-analysis

C2 Training: June 8 9, Combining effect sizes across studies. Create a set of independent effect sizes. Introduction to meta-analysis C2 Tranng: June 8 9, 2010 Introducton to meta-analyss The Campbell Collaboraton www.campbellcollaboraton.org Combnng effect szes across studes Compute effect szes wthn each study Create a set of ndependent

More information

Intra-Parametric Analysis of a Fuzzy MOLP

Intra-Parametric Analysis of a Fuzzy MOLP Intra-Parametrc Analyss of a Fuzzy MOLP a MIAO-LING WANG a Department of Industral Engneerng and Management a Mnghsn Insttute of Technology and Hsnchu Tawan, ROC b HSIAO-FAN WANG b Insttute of Industral

More information

The Research of Ellipse Parameter Fitting Algorithm of Ultrasonic Imaging Logging in the Casing Hole

The Research of Ellipse Parameter Fitting Algorithm of Ultrasonic Imaging Logging in the Casing Hole Appled Mathematcs, 04, 5, 37-3 Publshed Onlne May 04 n ScRes. http://www.scrp.org/journal/am http://dx.do.org/0.436/am.04.584 The Research of Ellpse Parameter Fttng Algorthm of Ultrasonc Imagng Loggng

More information

Virtual Memory. Background. No. 10. Virtual Memory: concept. Logical Memory Space (review) Demand Paging(1) Virtual Memory

Virtual Memory. Background. No. 10. Virtual Memory: concept. Logical Memory Space (review) Demand Paging(1) Virtual Memory Background EECS. Operatng System Fundamentals No. Vrtual Memory Prof. Hu Jang Department of Electrcal Engneerng and Computer Scence, York Unversty Memory-management methods normally requres the entre process

More information

Lecture 5: Probability Distributions. Random Variables

Lecture 5: Probability Distributions. Random Variables Lecture 5: Probablty Dstrbutons Random Varables Probablty Dstrbutons Dscrete Random Varables Contnuous Random Varables and ther Dstrbutons Dscrete Jont Dstrbutons Contnuous Jont Dstrbutons Independent

More information

Wishing you all a Total Quality New Year!

Wishing you all a Total Quality New Year! Total Qualty Management and Sx Sgma Post Graduate Program 214-15 Sesson 4 Vnay Kumar Kalakband Assstant Professor Operatons & Systems Area 1 Wshng you all a Total Qualty New Year! Hope you acheve Sx sgma

More information

Optimal Workload-based Weighted Wavelet Synopses

Optimal Workload-based Weighted Wavelet Synopses Optmal Workload-based Weghted Wavelet Synopses Yoss Matas School of Computer Scence Tel Avv Unversty Tel Avv 69978, Israel matas@tau.ac.l Danel Urel School of Computer Scence Tel Avv Unversty Tel Avv 69978,

More information

A MOVING MESH APPROACH FOR SIMULATION BUDGET ALLOCATION ON CONTINUOUS DOMAINS

A MOVING MESH APPROACH FOR SIMULATION BUDGET ALLOCATION ON CONTINUOUS DOMAINS Proceedngs of the Wnter Smulaton Conference M E Kuhl, N M Steger, F B Armstrong, and J A Jones, eds A MOVING MESH APPROACH FOR SIMULATION BUDGET ALLOCATION ON CONTINUOUS DOMAINS Mark W Brantley Chun-Hung

More information

Six-Band HDTV Camera System for Color Reproduction Based on Spectral Information

Six-Band HDTV Camera System for Color Reproduction Based on Spectral Information IS&T's 23 PICS Conference Sx-Band HDTV Camera System for Color Reproducton Based on Spectral Informaton Kenro Ohsawa )4), Hroyuk Fukuda ), Takeyuk Ajto 2),Yasuhro Komya 2), Hdeak Hanesh 3), Masahro Yamaguch

More information

A Post Randomization Framework for Privacy-Preserving Bayesian. Network Parameter Learning

A Post Randomization Framework for Privacy-Preserving Bayesian. Network Parameter Learning A Post Randomzaton Framework for Prvacy-Preservng Bayesan Network Parameter Learnng JIANJIE MA K.SIVAKUMAR School Electrcal Engneerng and Computer Scence, Washngton State Unversty Pullman, WA. 9964-75

More information

A Simple and Efficient Goal Programming Model for Computing of Fuzzy Linear Regression Parameters with Considering Outliers

A Simple and Efficient Goal Programming Model for Computing of Fuzzy Linear Regression Parameters with Considering Outliers 62626262621 Journal of Uncertan Systems Vol.5, No.1, pp.62-71, 211 Onlne at: www.us.org.u A Smple and Effcent Goal Programmng Model for Computng of Fuzzy Lnear Regresson Parameters wth Consderng Outlers

More information

Measuring Integration in the Network Structure: Some Suggestions on the Connectivity Index

Measuring Integration in the Network Structure: Some Suggestions on the Connectivity Index Measurng Integraton n the Network Structure: Some Suggestons on the Connectvty Inde 1. Measures of Connectvty The connectvty can be dvded nto two levels, one s domestc connectvty, n the case of the physcal

More information

Variance estimation in EU-SILC survey

Variance estimation in EU-SILC survey Varance estmaton n EU-SILC survey Mārtņš Lberts* * Mathematcal Support Dvson, Central Statstcal Bureau of Latva (Martns.Lberts@csb.gov.lv) bstract: The mplementaton of varance estmaton methods resamplng

More information

Reducing Frame Rate for Object Tracking

Reducing Frame Rate for Object Tracking Reducng Frame Rate for Object Trackng Pavel Korshunov 1 and We Tsang Oo 2 1 Natonal Unversty of Sngapore, Sngapore 11977, pavelkor@comp.nus.edu.sg 2 Natonal Unversty of Sngapore, Sngapore 11977, oowt@comp.nus.edu.sg

More information

3D vector computer graphics

3D vector computer graphics 3D vector computer graphcs Paolo Varagnolo: freelance engneer Padova Aprl 2016 Prvate Practce ----------------------------------- 1. Introducton Vector 3D model representaton n computer graphcs requres

More information

Analysis of Continuous Beams in General

Analysis of Continuous Beams in General Analyss of Contnuous Beams n General Contnuous beams consdered here are prsmatc, rgdly connected to each beam segment and supported at varous ponts along the beam. onts are selected at ponts of support,

More information

Machine Learning: Algorithms and Applications

Machine Learning: Algorithms and Applications 14/05/1 Machne Learnng: Algorthms and Applcatons Florano Zn Free Unversty of Bozen-Bolzano Faculty of Computer Scence Academc Year 011-01 Lecture 10: 14 May 01 Unsupervsed Learnng cont Sldes courtesy of

More information

On Some Entertaining Applications of the Concept of Set in Computer Science Course

On Some Entertaining Applications of the Concept of Set in Computer Science Course On Some Entertanng Applcatons of the Concept of Set n Computer Scence Course Krasmr Yordzhev *, Hrstna Kostadnova ** * Assocate Professor Krasmr Yordzhev, Ph.D., Faculty of Mathematcs and Natural Scences,

More information

Improvement of Spatial Resolution Using BlockMatching Based Motion Estimation and Frame. Integration

Improvement of Spatial Resolution Using BlockMatching Based Motion Estimation and Frame. Integration Improvement of Spatal Resoluton Usng BlockMatchng Based Moton Estmaton and Frame Integraton Danya Suga and Takayuk Hamamoto Graduate School of Engneerng, Tokyo Unversty of Scence, 6-3-1, Nuku, Katsuska-ku,

More information

DAD: DISTRIBUTIVE ANALYSIS / ANALYSE DISTRIBUTIVE

DAD: DISTRIBUTIVE ANALYSIS / ANALYSE DISTRIBUTIVE DAD: DISTRIBUTIVE ANALYSIS / ANALYSE DISTRIBUTIVE USER S MANUAL Jean-Yves Duclos Abdelrm Araar Carl Fortn : jyves@ecn.ulaval.ca : aabd@ecn.ulaval.ca : cfortn@ecn.ulaval.ca Unversté Laval Introducton DAD

More information

UNIVERSITY OF CALIFORNIA. Los Angeles. Development of. Statistical Online Computational Resources. and Teaching Tools

UNIVERSITY OF CALIFORNIA. Los Angeles. Development of. Statistical Online Computational Resources. and Teaching Tools UNIVERSITY OF CALIFORNIA Los Angeles Development of Statstcal Onlne Computatonal Resources and Teachng Tools A thess submtted n partal satsfacton of the requrements for the degree Master of Scence n Statstcs

More information

Related-Mode Attacks on CTR Encryption Mode

Related-Mode Attacks on CTR Encryption Mode Internatonal Journal of Network Securty, Vol.4, No.3, PP.282 287, May 2007 282 Related-Mode Attacks on CTR Encrypton Mode Dayn Wang, Dongda Ln, and Wenlng Wu (Correspondng author: Dayn Wang) Key Laboratory

More information

Classifier Selection Based on Data Complexity Measures *

Classifier Selection Based on Data Complexity Measures * Classfer Selecton Based on Data Complexty Measures * Edth Hernández-Reyes, J.A. Carrasco-Ochoa, and J.Fco. Martínez-Trndad Natonal Insttute for Astrophyscs, Optcs and Electroncs, Lus Enrque Erro No.1 Sta.

More information

PYTHON IMPLEMENTATION OF VISUAL SECRET SHARING SCHEMES

PYTHON IMPLEMENTATION OF VISUAL SECRET SHARING SCHEMES PYTHON IMPLEMENTATION OF VISUAL SECRET SHARING SCHEMES Ruxandra Olmd Faculty of Mathematcs and Computer Scence, Unversty of Bucharest Emal: ruxandra.olmd@fm.unbuc.ro Abstract Vsual secret sharng schemes

More information

Lobachevsky State University of Nizhni Novgorod. Polyhedron. Quick Start Guide

Lobachevsky State University of Nizhni Novgorod. Polyhedron. Quick Start Guide Lobachevsky State Unversty of Nzhn Novgorod Polyhedron Quck Start Gude Nzhn Novgorod 2016 Contents Specfcaton of Polyhedron software... 3 Theoretcal background... 4 1. Interface of Polyhedron... 6 1.1.

More information

Help for Time-Resolved Analysis TRI2 version 2.4 P Barber,

Help for Time-Resolved Analysis TRI2 version 2.4 P Barber, Help for Tme-Resolved Analyss TRI2 verson 2.4 P Barber, 22.01.10 Introducton Tme-resolved Analyss (TRA) becomes avalable under the processng menu once you have loaded and selected an mage that contans

More information

Cluster Analysis of Electrical Behavior

Cluster Analysis of Electrical Behavior Journal of Computer and Communcatons, 205, 3, 88-93 Publshed Onlne May 205 n ScRes. http://www.scrp.org/ournal/cc http://dx.do.org/0.4236/cc.205.350 Cluster Analyss of Electrcal Behavor Ln Lu Ln Lu, School

More information

Sum of Linear and Fractional Multiobjective Programming Problem under Fuzzy Rules Constraints

Sum of Linear and Fractional Multiobjective Programming Problem under Fuzzy Rules Constraints Australan Journal of Basc and Appled Scences, 2(4): 1204-1208, 2008 ISSN 1991-8178 Sum of Lnear and Fractonal Multobjectve Programmng Problem under Fuzzy Rules Constrants 1 2 Sanjay Jan and Kalash Lachhwan

More information

Introduction to Geometrical Optics - a 2D ray tracing Excel model for spherical mirrors - Part 2

Introduction to Geometrical Optics - a 2D ray tracing Excel model for spherical mirrors - Part 2 Introducton to Geometrcal Optcs - a D ra tracng Ecel model for sphercal mrrors - Part b George ungu - Ths s a tutoral eplanng the creaton of an eact D ra tracng model for both sphercal concave and sphercal

More information

Sequential search. Building Java Programs Chapter 13. Sequential search. Sequential search

Sequential search. Building Java Programs Chapter 13. Sequential search. Sequential search Sequental search Buldng Java Programs Chapter 13 Searchng and Sortng sequental search: Locates a target value n an array/lst by examnng each element from start to fnsh. How many elements wll t need to

More information

ON SOME ENTERTAINING APPLICATIONS OF THE CONCEPT OF SET IN COMPUTER SCIENCE COURSE

ON SOME ENTERTAINING APPLICATIONS OF THE CONCEPT OF SET IN COMPUTER SCIENCE COURSE Yordzhev K., Kostadnova H. Інформаційні технології в освіті ON SOME ENTERTAINING APPLICATIONS OF THE CONCEPT OF SET IN COMPUTER SCIENCE COURSE Yordzhev K., Kostadnova H. Some aspects of programmng educaton

More information

IP Camera Configuration Software Instruction Manual

IP Camera Configuration Software Instruction Manual IP Camera 9483 - Confguraton Software Instructon Manual VBD 612-4 (10.14) Dear Customer, Wth your purchase of ths IP Camera, you have chosen a qualty product manufactured by RADEMACHER. Thank you for the

More information

Oracle Database: SQL and PL/SQL Fundamentals Certification Course

Oracle Database: SQL and PL/SQL Fundamentals Certification Course Oracle Database: SQL and PL/SQL Fundamentals Certfcaton Course 1 Duraton: 5 Days (30 hours) What you wll learn: Ths Oracle Database: SQL and PL/SQL Fundamentals tranng delvers the fundamentals of SQL and

More information

5.1 The ISR: Overvieui. chapter

5.1 The ISR: Overvieui. chapter chapter 5 The LC-3 n Chapter 4, we dscussed the basc components of a computer ts memory, ts processng unt, ncludng the assocated temporary storage (usually a set of regsters), nput and output devces, and

More information