Stata 12/13 Tutorial 4
|
|
- Charles Flowers
- 5 years ago
- Views:
Transcription
1 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 /3 Tutoral 4 deals wth computng the condtonal and margnal effects of ndvdual contnuous explanatory varables on the dependent varable n lnear regresson models. It also demonstrates how to create a lne graph of the margnal effect of a contnuous explanatory varable and how to save the lne graph n several dfferent fle formats for future use. The condtonal effect of an explanatory varable on the dependent varable s the ceters parbus relatonshp between the values of that explanatory varable and the condtonal mean of the dependent varable for fxed values of all other explanatory varables n the regresson functon. The margnal effect of an explanatory varable on the dependent varable s the ceters parbus (or partal) effect of a unt ncrease n that explanatory varable on the condtonal mean of the dependent varable. The Stata commands that consttute the prmary subject of ths tutoral are: regress scalar lncom margns margnsplot graph graph save Used to perform OLS estmaton of multple lnear regresson models. Used to save as scalars elements of the coeffcent vector and the coeffcent covarance matrx after OLS estmaton. Used after estmaton to compute lnear combnatons of coeffcent estmates and assocated statstcs. Used after OLS estmaton to compute estmates of the margnal effects of contnuous explanatory varables. Used to draw lne graphs of the margnal effects of contnuous explanatory varables n lnear regresson models. Used to graph or plot the condtonal and margnal effects of contnuous explanatory varables n lnear regresson models Saves the graph currently dsplayed n the Graph wndow to a dsk fle n the current Stata workng drectory. Page of 33 pages
2 graph export Exports the graph currently dsplayed n the Graph wndow to a fle n the current Stata workng drectory. graph use Loads a graph on dsk nto memory and dsplays t n the Graph wndow. NOTE: Stata commands are case senstve. All Stata command names must be typed n the Command wndow n lower case letters. HELP: Stata has an extensve on-lne Help faclty that provdes farly detaled nformaton (ncludng examples) on all Stata commands. Students should become famlar wth the Stata on-lne Help system. In the course of dong ths tutoral, take the tme to browse the Help nformaton on some of the above Stata commands. To access the on-lne Help for any Stata command: choose (clck on) Help from the Stata man menu bar clck on Stata Command n the Help drop down menu type the full name of the Stata command n the Stata command dalog box and clck OK Page of 33 pages
3 Preparng for Your Stata Sesson Before begnnng your Stata sesson, use Wndows Explorer to copy the Stata-format dataset auto.dta to the Stata workng drectory on the C:-drve or D:-drve of the computer at whch you are workng. If you dd not save the Stata-format dataset auto.dta you created durng Stata /3 Tutoral and brng t wth you on a portable storage devce such as a flash memory stck, you wll have to repeat the relevant secton of Stata /3 Tutoral before proceedng wth ths tutoral. On the computers n Dunnng 35, the default Stata workng drectory s usually C:\data. Start Your Stata Sesson To start your Stata sesson, double-clck on the Stata or Stata 3 con on the Wndows desktop. After you double-clck the Stata or Stata 3 con, you wll see the famlar screen of fve 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 45tutoral4.log. To open (begn) the log fle 45tutoral4.log, enter n the Command wndow: log usng 45tutoral4.log Ths command opens a text-format (ASCII) fle called 45tutoral4.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. Page 3 of 33 pages
4 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 45tutoral4.txt, enter n the Command wndow: cmdlog usng 45tutoral4 Ths command opens a plan text-format (ASCII) fle called 45tutoral4.txt n the current Stata workng drectory. All commands you enter durng your Stata sesson are recorded n ths fle. At the end of ths tutoral, you wll close your command log fle n the same way you close your regular log fle. Loadng a Stata-Format Dataset nto Stata use To check that the Stata-format dataset auto.dta s n the current Stata workng drectory of the computer at whch you are workng, type n the Command wndow: dr auto.* You should see n the Stata Results wndow the flename auto.dta. To load, or read, nto memory the Stata-format dataset auto.dta, type n the Command wndow: use auto Ths command loads nto memory the Stata-format dataset auto.dta. To summarze the contents of the current dataset, use the descrbe command. Recall from Stata /3 Tutoral that the descrbe command dsplays a summary of the contents of the current dataset n memory, whch n ths case s the Stataformat data fle auto.dta. Type n the Command wndow: descrbe Page 4 of 33 pages
5 To compute summary statstcs for the varables n the current dataset, use the summarze command. Recall from Stata /3 Tutoral that the summarze command computes descrptve summary statstcs for all numerc varables n the current dataset n memory. Type n the Command wndow: summarze The Condtonal Effects of Indvdual Explanatory Varables: Defnton Nature: The condtonal effect of an explanatory varable on the dependent varable s the ceters parbus relatonshp between the values of that explanatory varable and the condtonal mean of the dependent varable for fxed values of all other explanatory varables n the regresson functon. Consder the followng lnear regresson model for car prces (whch s Model of Stata /3 Tutoral ): prce = β + u. () The populaton regresson functon for regresson equaton () s wrtten n general as: E(prce, ) = β () There are two explanatory varables n model () and. The condtonal effect of each s obtaned by settng the other explanatory varable equal to some specfed (or selected) value n the populaton regresson equaton n other words, by holdng constant the other explanatory varable. Condtonal effect of on prce The condtonal effect of on prce s obtaned by settng the other explanatory varable n regresson functon () namely equal to some specfed value such as =. The condtonal effect of on prce for = s thus: Page 5 of 33 pages
6 E(prce, ) = β = β = ( β ) + ( β ) (3) As the above equaton ndcates, the condtonal effect of on prce s a quadratc functon of once the value of s fxed at the specfed value. Interpretaton: The condtonal effect of on prce represents the ceters parbus, or "other thngs equal," relatonshp between mean prce and the explanatory varable. In other words, t solates the relatonshp between and prce from the relatonshps of the other explanatory varable(s) to prce. But t controls for, or adjusts for, the effect(s) on prce of the other explanatory varable(s) n ths case the explanatory varable. It s therefore often referred to as the regresson-adjusted relatonshp of to prce. Estmaton: The condtonal effect of on prce for = s estmated by replacng the populaton regresson coeffcents β j (j =,,, 5) n expresson (3) for E(prce, ) wth ther OLS estmates ˆβ j (j =,,, 5): Ê(prce, ) = (ˆ β ˆ ˆ 4 ) + (ˆ β ˆ 5 ) ˆ 3 (4) Condtonal effect of on prce The condtonal effect of on prce s obtaned by settng the other explanatory varable n regresson functon () namely equal to some specfed value such as =. The condtonal effect of on prce for = s thus: Page 6 of 33 pages
7 E(prce, ) = β = β = ( β ) + ( β ) (5) The above equaton ndcates that the condtonal effect of on prce s a quadratc functon of once the value of s fxed at the specfed value. Estmaton: The condtonal effect of on prce for = s estmated by replacng the populaton regresson coeffcents β j (j =,,, 5) n expresson (5) for E(prce, ) wth ther OLS estmates ˆβ j (j =,,, 5): Ê(prce, ) = (ˆ β ˆ ˆ 3 ) + (ˆ β ˆ 5 ) ˆ 4 (6) The Margnal Effects of Indvdual Explanatory Varables: Defnton The margnal effect of an ndvdual explanatory varable s a functon that gves the change n the mean value of the dependent varable n response to a one-unt ncrease n the value of the explanatory varable, holdng constant the effects of all other explanatory varables n the model. Consder agan Model for car prces, whch s gven by the populaton regresson equaton (): prce = β + u. () Re-wrte the populaton regresson functon (or PRF) for Model as: E(prce, ) = β () Page 7 of 33 pages
8 Margnal effect of on prce The margnal effect of on prce s obtaned by partally dfferentatng regresson equaton (), or equvalently the populaton regresson functon (), wth respect to : prce = E ( prce, ) = 3 5 β (7) Estmates of the margnal effect of on prce are obtaned by substtutng n (7) the OLS coeffcent estmates ˆβ j for the populaton regresson coeffcents β j : estmate of prce = Ê ( prce, ) β ˆ ˆ ˆ (8) = 3 5 The estmated margnal effect of on prce can be evaluated at any chosen values of and. Margnal effect of on prce The margnal effect of on prce s obtaned by partally dfferentatng regresson equaton (), or equvalently the populaton regresson functon (), wth respect to : prce = E ( prce, ) = 4 5 β (9) Estmates of the margnal effect of on prce are obtaned by substtutng n (9) the OLS coeffcent estmates ˆβ j for the populaton regresson coeffcents β j : estmate of prce = Ê ( prce, ) β ˆ ˆ ˆ () = 4 5 Page 8 of 33 pages
9 The estmated margnal effect of on prce can be evaluated at any chosen values of and. Computng "Typcal" Values of Varables as Scalars Computng both condtonal and margnal effects requres the selecton of certan fxed values of the explanatory varables and. In the foregong expressons for the condtonal and margnal effects of and, these selected fxed values are denoted as and. But what specfc values mght one select for and? Common choces for the values of and are sample means and sample percentles such as the medan (5-th percentle), the frst quartle (5-th percentle), and the thrd quartle (75-th percentle). In ths secton, we use the summarze and scalar commands to create these values as scalars. To create as scalars the sample mean and the 5-th, 5-th and 75-th sample percentles of the varable, enter the followng commands: summarze, detal return lst scalar bar = r(mean) scalar 5 = r(p5) scalar 5 = r(p5) scalar 75 = r(p75) scalar lst bar To create as scalars the sample mean and the 5-th, 5-th and 75-th sample percentles of the varable, enter the followng commands: summarze, detal return lst scalar bar = r(mean) scalar 5 = r(p5) scalar 5 = r(p5) scalar 75 = r(p75) scalar lst bar Page 9 of 33 pages
10 Computng the Condtonal Effects of Indvdual Explanatory Varables Frst, f your current dataset does not already nclude them, you wll have to generate the regressors, and that enter Model but that are not ncluded n the current dataset. In that case, enter the commands: generate sq = ^ generate sq = ^ generate = * summarze prce sq sq Now estmate regresson equaton () by OLS. Enter the command regress prce sq sq Use the scalar command to save the OLS coeffcent estmates, and the scalar lst command to dsplay the saved scalars. Enter the commands: scalar b = _b[] scalar b = _b[] scalar b3 = _b[sq] scalar b4 = _b[sq] scalar b5 = _b[] scalar b = _b[_cons] scalar lst b b b3 b4 b5 b Condtonal Effect of The estmated condtonal effect of on prce for some gven value of s the followng quadratc functon of : Ê(prce, ) = (ˆ β ˆ ˆ 4 ) + (ˆ β ˆ 5 ) ˆ 3 (4) Create as a varable the condtonal effect of on prce for = the sample mean of. Enter on one lne the generate command: generate cebar = b + b*bar + b4*(bar^) + (b + b5*bar)* + b3*sq Page of 33 pages
11 Create as a varable the condtonal effect of on prce for = the 5-th sample percentle of. Enter on one lne the generate command: generate ce5 = b + b*5 + b4*(5^) + (b + b5*5)* + b3*sq Create as a varable the condtonal effect of on prce for = the 5-th sample percentle of. Enter on one lne the generate command: generate ce5 = b + b*5 + b4*(5^) + (b + b5*5)* + b3*sq Create as a varable the condtonal effect of on prce for = the 75-th sample percentle of. Enter on one lne the generate command: generate ce75 = b + b*75 + b4*(75^) + (b + b5*75)* + b3*sq Lst and compute summary statstcs for the values of the four condtonal effects of you have just created, after frst sortng the sample observatons n ascendng order of the sample values of. Enter the commands: sort lst cebar ce5 ce5 ce75 summarze cebar ce5 ce5 ce75 Condtonal Effect of The estmated condtonal effect of on prce for some gven value of s the followng quadratc functon of : Ê(prce, ) = (ˆ β ˆ ˆ 3 ) + (ˆ β ˆ 5 ) ˆ 4 (6) Create as a varable the condtonal effect of on prce for = the sample mean of. Enter on one lne the generate command: generate cebar = b + b*bar + b3*(bar^) + (b + b5*bar)* + b4*sq Page of 33 pages
12 Create as a varable the condtonal effect of on prce for = the 5-th sample percentle of. Enter on one lne the generate command: generate ce5 = b + b*5 + b3*(5^) + (b + b5*5)* + b4*sq Create as a varable the condtonal effect of on prce for = the 5-th sample percentle of. Enter on one lne the generate command: generate ce5 = b + b*5 + b3*(5^) + (b + b5*5)* + b4*sq Create as a varable the condtonal effect of on prce for = the 75-th sample percentle of. Enter on one lne the generate command: generate ce75 = b + b*75 + b3*(75^) + (b + b5*75)* + b4*sq Lst and compute summary statstcs for the four condtonal effects of you have just created, after frst sortng the sample observatons n ascendng order of the sample values of. Enter the commands: sort lst cebar ce5 ce5 ce75 summarze cebar ce5 ce5 ce75 Graphng the Condtonal Effects of Indvdual Explanatory Varables The estmated condtonal effect of on prce for any gven value of s a quadratc functon of. In order to better understand the nature of these condtonal effect functons, t s often nstructve to draw lne graphs of the estmated condtonal effect of on prce ; these plot the estmated values of the condtonal effect of aganst the sample values of sorted n ascendng order. Graphng the Condtonal Effect of Frst, to ensure that the sample observatons are sorted n ascendng order of the sample values of, enter the followng sort command: sort Page of 33 pages
13 Use the graph twoway lne command to draw a twoway lne graph of the estmated condtonal effect of on prce as a functon of whle holdng the value of the other contnuous varable constant at ts sample mean value. Enter the commands: graph twoway lne cebar lne cebar Note that the command name graph twoway lne can be abbrevated to smply lne. Use the yttle ( ) and xttle( ) optons to add your own ttles to the vertcal y-axs and horzontal x-axs of the above lne graph. Enter on one lne the command: lne cebar, yttle("condtonal Mean Car Prce ($)") xttle("car Weght (pounds)") Use the ttle( ) and subttle( ) optons to add ttles to the above fgure. Enter on one lne the command: lne cebar, yttle("condtonal Mean Car Prce ($)") xttle("car Weght (pounds)") ttle("condtonal Effect of Weght on Car Prce") subttle("for Sample Mean Value of Fuel Effcency ()") Use the graph twoway lne command to draw n the same dagram lne graphs of the estmated condtonal effects of on prce as functons of for the 5- th, 5-th and 75-th sample percentle values of. Enter on one lne the command: graph twoway lne ce5 ce5 ce75, yttle("condtonal Mean Car Prce ($)") xttle("car Weght (pounds)") ttle("condtonal Effect of Weght on Car Prce") subttle("for Selected Percentle Values of Fuel Effcency ()") Modfy the above dagram by usng the ylabel( ) and xlabel( ) optons to change the default labelng and tckng of values on the left vertcal and bottom horzontal axes of the dagram. Enter on one lne the command: Page 3 of 33 pages
14 lne ce5 ce5 ce75, yttle("condtonal Mean Car Prce ($)") xttle("car Weght (pounds)") ttle("condtonal Effect of Weght on Car Prce") subttle("for Selected Percentle Values of Fuel Effcency ()") ylabel((5)) xlabel((5)5) Note the effects of the added optons on the appearance of the fgure, n partcular on the value labelng of the two axes. Note too that the command name has been abbrevated from graph twoway lne to smply lne. Fnally, use the legend ( ) opton to change the default legend of the above dagram. Enter on one lne the command: lne ce5 ce5 ce75, yttle("condtonal Mean Car Prce ($)") xttle("car Weght (pounds)") ttle("condtonal Effect of Weght on Car Prce") subttle("for Selected Percentle Values of Fuel Effcency ()") ylabel((5)) xlabel((5)5) legend(label( " = 5-th percentle") label( " = 5-th percentle") label(3 " = 75-th percentle")) Graphng the Condtonal Effect of Frst, sort the sample observatons n ascendng order of the sample values of. Enter the followng sort command: sort Use the graph twoway lne command to draw a lne graph of the estmated condtonal effect of on prce as a functon of, condtonal on the sample mean value of. Enter on one lne the command: graph twoway lne cebar, yttle("condtonal Mean Car Prce ($)") xttle("fuel Effcency ( = mles per gallon)") Use the graph twoway lne command to draw n the same dagram lne graphs of the estmated condtonal effect of on prce as a functon of for the 5- th, 5-th and 75-th sample percentle values of. Use approprate ttle( ), subttle( ), ylabel( ), and legend( ) optons to make your fgure more readable. Enter on one lne the command: Page 4 of 33 pages
15 lne ce5 ce5 ce75, yttle("condtonal Mean Car Prce ($)") xttle("fuel Effcency ( = mles per gallon)") ttle("condtonal Effect of Fuel Effcency on Car Prce") subttle("for Selected Percentle Values of Car Weght ()") ylabel((5)) legend(label( " = 5-th percentle") label( " = 5-th percentle") label(3 " = 75-th percentle")) Computng the Margnal Effects of Indvdual Explanatory Varables The lncom command s a convenent tool not only for evaluatng margnal effects for selected values of the explanatory varables, but also for performng two-tal tests of the null hypothess that the margnal effect s zero for the specfed values of the explanatory varables. Frst, re-estmate the model by OLS by enterng ether one of the followng commands: regress regress prce sq sq Margnal Effects of The estmated margnal effect of on prce for some gven values of and of s calculated by the followng lnear functon of and : estmate of prce = Ê ( prce, ) ˆ = β 3 5 ˆ ˆ Use the followng lncom command to evaluate the estmated margnal effect of on prce for the sample mean values of and : lncom _b[] + *_b[sq]*bar + _b[]*bar Note that the lncom command also computes () the estmated standard error of the estmated margnal effect of on prce, and () the t-rato for a two-tal test of the null hypothess that the margnal effect of on prce equals zero for the average car n the sample. Would you retan or reject the null hypothess at the 5 percent sgnfcance level, at the percent sgnfcance level? Page 5 of 33 pages
16 Use the followng lncom command to evaluate the estmated margnal effect of on prce for the 5-th sample percentles of and. Enter the commands: lncom _b[] + *_b[sq]*5 + _b[]*5 return lst Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for a car whose weght and fuel effcency equal the 5-th sample percentle values? Use the followng lncom command to evaluate the estmated margnal effect of on prce for the 5-th sample percentles of and : lncom _b[] + *_b[sq]*5 + _b[]*5 Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for the medan car n the sample? Use the followng lncom command to evaluate the estmated margnal effect of on prce for a car n the 5-th sample percentle of and the 75-th sample percentle n : lncom _b[] + *_b[sq]*5 + _b[]*75 Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for a car n the 5-th sample percentle of and the 75-th sample percentle n? Fnally, you can evaluate the margnal effect of on prce for all 74 cars n the sample. Enter the followng commands: generate me = b + *b3* + b5* summarze me Use the graph twoway scatter command to plot the estmated margnal effect of on prce aganst for all cars n the sample, after frst sortng the sample observatons n ascendng order of the observed values of. Enter the commands: Page 6 of 33 pages
17 sort lst me graph twoway scatter me Add approprate ylabel( ), xlabel( ), ttle( ), subttle( ), yttle( ) and xttle( ) optons to the above graph twoway scatter command to make the fgure more readable. Enter on one lne the command: graph twoway scatter me, ylabel(-(5)) xlabel((5)5) ttle("margnal Effect of Weght on Car Prce") subttle("as Functon of WGT, All Cars n Sample") yttle("margnal effect of on prce ($ per pound)") xttle("car weght n pounds ()") Use the graph twoway scatter command to plot the estmated margnal effect of on prce aganst for all cars n the sample, after frst sortng the sample observatons n ascendng order of the observed values of. Enter the commands: sort lst me graph twoway scatter me Add approprate ylabel( ), xlabel( ), yttle( ), xttle( ), ttle( ), and subttle( ) optons to the above graph twoway scatter command to make the fgure more readable. Enter on one lne the command: graph twoway scatter me, ylabel(-(5)) xlabel((5)4) yttle("margnal effect of on prce ($ per pound)") xttle("mles per gallon ()") ttle("estmated Margnal Effect of Wgt on Prce") subttle("as Functon of MPG, All Cars n Sample") Margnal Effects of The estmated margnal effect of on prce for some gven values of and of s calculated by the followng lnear functon of and : estmate of prce = Ê ( prce, ) ˆ = β 4 5 ˆ ˆ Page 7 of 33 pages
18 Use the followng lncom command to evaluate the estmated margnal effect of on prce for the sample mean values of and : lncom _b[] + *_b[sq]*bar + _b[]*bar Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for the "average" car n the sample? Use the followng lncom command to evaluate the estmated margnal effect of on prce for the 5-th sample percentles of and : lncom _b[] + *_b[sq]*5 + _b[]*5 Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for a car whose weght and fuel effcency equal the 5-th sample percentle values? Use the followng lncom command to evaluate the estmated margnal effect of on prce for the 5-th sample percentles of and : lncom _b[] + *_b[sq]*5 + _b[]*5 Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for the medan car n the sample? Use the followng lncom command to evaluate the estmated margnal effect of on prce for a car n the 5-th sample percentle of and the 75-th sample percentle of : lncom _b[] + *_b[sq]*75 + _b[]*5 Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for a car n the 5-th sample percentle of and the 75-th sample percentle of? Fnally, you can evaluate the margnal effect of on prce for all 74 cars n the sample. Enter the followng commands: generate me = b + *b4* + b5* summarze me Page 8 of 33 pages
19 Use the graph twoway scatter command to plot the estmated margnal effect of on prce aganst for all cars n the sample, after frst sortng the sample observatons n ascendng order of the observed values of. Enter the commands: sort lst me graph twoway scatter me Add approprate yttle( ), xttle( ), ttle( ), and subttle( ) optons to the above graph twoway scatter command to make the fgure more readable. Enter on one lne the command: graph twoway scatter me, ttle("margnal Effect of MPG on Car Prce") subttle("as Functon of MPG, All Cars n Sample") yttle("margnal effect of on prce ($ per )") xttle("mles per gallon ()") Use the graph twoway scatter command to plot the estmated margnal effect of on prce aganst for all cars n the sample, after frst sortng the sample observatons n ascendng order of the observed values of. Enter the commands: sort lst me graph twoway scatter me Add approprate yttle( ), xttle( ), ttle( ), and subttle( ) optons to the above graph twoway scatter command to make the fgure more readable. Enter on one lne the command: graph twoway scatter me, ttle("margnal Effect of MPG on Car Prce") subttle("as Functon of WGT, All Cars n Sample") yttle("margnal effect of on prce ($ per )") xttle("car weght ()") Computng Margnal Effects of Contnuous Explanatory Varables margns In the two precedng sectons, you have computed the margnal effect of and the margnal effect of for selected values of the explanatory varables usng the lncom command. In ths secton, you are ntroduced to the Stata margns command Page 9 of 33 pages
20 as a convenent means of computng estmates of the margnal effects of contnuous explanatory varables followng OLS estmaton of a lnear regresson model usng the regress command, and of performng two-tal tests of the null hypothess that the margnal effect s zero for the specfed values of the explanatory varables. For ths purpose, the margns command s often much smpler and faster to use than the lncom command. However, a requrement of the margns command s that the estmaton command t follows s formulated n what Stata calls factor-varable notaton, whch dentfes for Stata whether a partcular explanatory varable s a contnuous or a categorcal varable.. If an explanatory varable s contnuous, then ts name must be entered n the varable lst of the estmaton command wth the prefx c., whch dentfes the varable as a contnuous varable. For example, the varable must appear n the varable lst of the regress command as c.. Smlarly, the varable must appear n the varable lst of the regress command as c... If an explanatory varable s categorcal, then ts name must be entered n the varable lst of the estmaton command wth the prefx., whch dentfes the varable as a categorcal, or ndcator, varable that takes only non-negatve nteger values denotng the varous levels of the varable. For example, f the bnary categorcal varable sex takes only the two values for males and for females, then t must appear n the varable lst of the regress command as.sex. Smlarly, f the mult-level categorcal varable group takes the fve values,, 3, 4 and 5, then t must appear n the varable lst of the regress command as.group. You wll be ntroduced to the use of the margns command for categorcal varables n a later tutoral. Recall that Model for car prces s gven by the populaton regresson equaton (): prce = β + u. () Re-wrte the populaton regresson functon (or PRF) for Model as: E(prce, ) = β () Page of 33 pages
21 Frst, use the regress command to re-estmate by OLS regresson equaton () for prce usng the c. prefx to dentfy the contnuous explanatory varables. Enter the command: regress prce c. c. c.#c. c.#c. c.#c. Note the use of the factor-varable operator #, whch specfes nteractons or products of two varables. Thus, c.#c. s squared ( ), c.#c. s squared ( ), and c.#c. s the nteracton term. Computng Margnal Effects of The estmated margnal effect of on prce for some gven values of and of s calculated by the followng lnear functon of and : estmate of prce = Ê ( prce, ) ˆ = β 3 5 ˆ ˆ Use any of the followng margns commands to evaluate the estmated margnal effect of on prce at the sample mean values of and : margns, dydx(c.) margns, dydx() margns, dydx(c.) at((mean) ) Note that all three of these margns commands produce dentcal results. That s because the default values of the explanatory varables at whch the margns command computes estmates of margnal effects are the sample mean values. In addton to an estmate of the condtonal margnal effect of on prce, each of the above margns commands also computes () the estmated standard error of the estmated margnal effect of on prce, () a z-rato (or large sample t- rato) for performng a two-tal test of the null hypothess that the margnal effect of on prce equals zero for the average car n the sample, (3) a two-tal p- value for the z-rato, and (4) a two-sded 95% confdence nterval for the margnal Page of 33 pages
22 effect of on prce. Would you retan or reject the null hypothess at the 5 percent sgnfcance level, at the percent sgnfcance level? Use the at( ) opton on the margns command to estmate the margnal effect of on prce for the 5-th sample percentles of and. Enter the two margns commands: margns, dydx(c.) at((p5) (p5) ) margns, dydx(c.) at((p5) ) Note that these two margns commands produce dentcal results; the second just saves a few keystrokes. Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for a car whose weght and fuel effcency equal the 5-th sample percentle values? Use any of the followng margns commands wth the at( ) opton to estmate the margnal effect of on prce for the 5-th sample percentles of and : margns, dydx(c.) at((p5) (p5) ) margns, dydx(c.) at((medan) (medan) ) margns, dydx(c.) at((medan) ) Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for the medan car n the sample? Use the followng margns command to evaluate the estmated margnal effect of on prce of a car n the 5-th sample percentle of and the 75-th sample percentle n : margns, dydx(c.) at((p5) (p75) ) Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for a car n the 5-th sample percentle of and the 75-th sample percentle n? Fnally, you can evaluate the margnal effect of on prce at several dfferent values of and a fxed value of to examne how the condtonal margnal effect of vares wth whle holdng the values of the other explanatory Page of 33 pages
23 varables constant at specfed fxed values. To llustrate, suppose we want to estmate the margnal effect of on prce at the sample medan value of and the followng values of :,,,5,,5,,75, 3,, 3,5, 3,5, 3,75, 4,, 4,5, 4,5. These values of approxmately span the range of sample values of n the sample data. Enter the followng margns command, notng n partcular the formulaton of the at( ) opton: margns, dydx(c.) at( = ((5)45) (medan) ) The above at( ) opton fxes the value of the contnuous explanatory varable at ts sample medan value and computes the condtonal margnal effect of on prce at dstnct values of, begnnng at, pounds and ncreasng n ncrements of 5 pounds to 4,5 pounds. Now we can use the margnsplot command to draw a lne graph of the estmated margnal effect of on prce aganst for cars wth the medan value of and the dstnct values of specfed n the precedng margns command. Enter the followng margnsplot command: margnsplot Note that ths margnsplot command dsplays the 95% confdence lmts for the margnal effect estmates at each of the data ponts. To suppress the dsplay of the confdence ntervals, add the noc opton to the above margnsplot command; noc s short for no confdence nterval. Enter the followng margnsplot command wth the noc opton: margnsplot, noc Add approprate ttles to the lne graph produced by the foregong margnsplot commands usng the ttle( ), subttle( ) and yttle( ) optons. The xttle( ), note( ) and capton( ) optons can also be used to further annotate the graph. Enter on one lne the followng margnsplot command wth ttle( ), subttle( ) and yttle( ) optons: margnsplot, ttle(condtonal Margnal Effect of WGT on Car Prce) subttle("at Sample Medan of MPG =, wth 95% Confdence Lmts") yttle(change n car prce (dollars)) Page 3 of 33 pages
24 You may want to save a graph to dsk n a format such that you can use t, and perhaps modfy t, ether later n your current Stata sesson or durng some future Stata sesson. The graph save command can be used to do ths. To save the graph created by the precedng margnsplot command to a dsk fle n the current Stata workng drectory and gve that dsk fle the name graph_tutoral4_f3.gph, enter the followng graph save command: graph save graph_tutoral4_f3.gph Note that specfyng the fle extenson.gph n the name gven to the dsk fle s optonal; all graph save commands wll create dsk fles wth the fle extenson.gph. Computng Margnal Effects of The estmated margnal effect of on prce for some gven values of and of s calculated by the followng lnear functon of and : estmate of prce = Ê ( prce, ) ˆ = β 4 5 Use any of the followng margns commands to evaluate the estmated margnal effect of on prce at the sample mean values of and : margns, dydx(c.) margns, dydx() margns, dydx(c.) at((mean) (mean) ) margns, dydx(c.) at((mean) ) Note agan that all four of these margns commands produce dentcal results because the default values of the explanatory varables at whch the margns command computes estmates of margnal effects are the sample mean values. Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for the average car n the sample at the 5 percent sgnfcance level, at the percent sgnfcance level? ˆ ˆ Page 4 of 33 pages
25 Use the at( ) opton on the margns command to estmate the margnal effect of on prce for the 5-th sample percentles of and. Enter the two margns commands, whch you wll see produce dentcal results: margns, dydx(c.) at((p5) (p5) ) margns, dydx(c.) at((p5) ) Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for a car whose weght and fuel effcency equal the 5-th sample percentle values? Use any of the followng margns commands wth the at( ) opton to estmate the margnal effect of on prce for the 5-th sample percentles of and : margns, dydx(c.) at((p5) (p5) ) margns, dydx(c.) at((medan) (medan) ) margns, dydx(c.) at((medan) ) Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for the medan car n the sample? Use the followng margns command to evaluate the estmated margnal effect of on prce for a car n the 5-th sample percentle of and the 75-th sample percentle n : margns, dydx(c.) at((p5) (p75) ) Would you retan or reject the null hypothess that the margnal effect of on prce equals zero for a car n the 5-th sample percentle of and the 75-th sample percentle n? Fnally, you can evaluate the margnal effect of on prce at several dfferent values of and a fxed value of to examne how the condtonal margnal effect of vares wth whle holdng the values of the other explanatory varables constant at specfed fxed values. To llustrate, suppose we want to estmate the margnal effect of on prce at the sample medan value of and the followng 5 values of :, 4, 6, 8,,, 4, 6, 8, 3, 3, 34, 36, 38, 4. These 5 values of approxmately span the range of sample Page 5 of 33 pages
26 values of n the sample data. Enter the followng margns command, notng n partcular the formulaton of the at( ) opton: margns, dydx(c.) at( = (()4) (medan) ) The above at( ) opton fxes the value of the contnuous explanatory varable at ts sample medan value and computes the condtonal margnal effect of on prce at 5 dstnct values of, begnnng at and ncreasng n ncrements of to 4. We can now use the margnsplot command to draw a lne graph of the estmated margnal effect of on prce aganst for cars wth the medan value of and the 5 dstnct values of specfed n the precedng margns command. Enter the followng margnsplot command: margnsplot Note that ths margnsplot command dsplays the 95% confdence lmts for the margnal effect estmates at each of the 5 data ponts. To suppress the dsplay of the confdence ntervals, add the noc opton to the above margnsplot command; noc s short for no confdence nterval. Enter the followng margnsplot command wth the noc opton: margnsplot, noc Add approprate ttles to the lne graph produced by the foregong margnsplot commands usng the ttle( ), subttle( ) and yttle( ) optons. The xttle( ), note( ) and capton( ) optons can also be used to further annotate the graph. Enter on one lne the followng margnsplot command wth ttle( ), subttle( ) and yttle( ) optons: margnsplot, ttle(condtonal Margnal Effect of MPG on Car Prce) subttle("at medan WGT (3,9 pounds), wth 95% confdence lmts") yttle(change n car prce (US dollars)) To save the graph created by the precedng margnsplot command to a dsk fle n the current Stata workng drectory and gve that dsk fle the name graph_tutoral4_f3.gph, enter the followng graph save command: Page 6 of 33 pages
27 graph save graph_tutoral4_f3.gph Note that specfyng the fle extenson.gph n the name gven to the dsk fle s optonal; all graph save commands wll create dsk fles wth the fle extenson.gph. Exportng a graph to dsk graph export You may also want to export a graph created by Stata to a fle on dsk so that you can nsert that graph nto a document created by a word processor such as MS Word. The graph export command can be used to do ths. Basc Syntax graph export newflename.suffx [, optons ] Ths command exports to a dsk fle n the current Stata workng drectory the graph currently dsplayed n the Graph wndow. The output format of ths fle s determned by the suffx of newflename.suffx. An alternatve way to specfy the output format of the exported fle s to use the as(fleformat) opton, where fleformat specfes the desred format of the exported fle. The avalable output formats that can be specfed wth the graph export command are lsted n the followng table. suffx mpled opton output format.ps as(ps) PostScrpt.eps as(eps) EPS (Encapsulated PostScrpt).wmf as(wmf) Wndows Metafle.emf as(emf) Wndows Enhanced Metafle.pct as(pct) Mackntosh PICT format.pdf as(pdf) PDF.png as(png) PNG (Portable Network Graphcs).tf as(tf) TIFF Notes: ps and eps are avalable wth all versons of Stata; png and tf are avalable for all versons of Stata except Stata(console) for Unx; wmf and emf are avalable only wth Stata for Wndows; and pct and pdf are avalable only wth Stata for Mackntosh. Page 7 of 33 pages
28 Source: StataCorp 7. Stata Statstcal Software Release : Graphcs. College Staton, TX: StataCorp LP, p. 4. To llustrate how to use the graph export command, frst use the Stata graph use command to read nto memory and dsplay n the Graph wndow the frst graph you saved to dsk durng ths tutoral, specfcally the graph named graph_tutoral4_f3. Enter the followng command: graph use graph_tutoral4_f3 To export and save ths lne graph n EPS (Encapsulated PostScrpt) format to a fle named graph_tutoral4_f3.eps n the current Stata workng drectory, enter the graph export command: graph export graph_tutoral4_f3.eps To export and save the same lne graph n Wndows Metafle format to a fle named graph_tutoral4_f3.wmf n the current Stata workng drectory, enter the graph export command: graph export graph_tutoral4_f3.wmf To export and save the same lne graph n Wndows Enhanced Metafle format to a fle named graph_tutoral4_f3.emf n the current Stata workng drectory, enter the graph export command: graph export graph_tutoral4_f3.emf Fnally, to export and save the same lne graph n PNG (Portable Network Graphcs) format to a fle named graph_tutoral4_f3.png n the current Stata workng drectory, enter the graph export command: graph export graph_tutoral4_f3.png To lst the several graph fles you have just saved to fles n the current Stata workng drectory, enter the followng dr command: dr graph_tutoral4_f3.* Page 8 of 33 pages
29 Insertng exported graph fles nto an MS Word document In ths secton, we llustrate how exported Stata graph fles n varous output formats appear when they are nserted nto the current document, whch s a Mcrosoft Word document. The exported fles we nsert are the followng: the fle graph_tutoral4_f3.eps, whch s n EPS (Encapsulated PostScrpt) format; the fle graph_tutoral4_f3.wmf, whch s n Wndows Metafle format; the fle graph_tutoral4_f3.emf, whch s n Wndows Enhanced Metafle format; and the fle graph_tutoral4_f3.png, whch s n PNG (Portable Network Graphcs) format. In MS Word, each of these Stata graph fles can be nserted nto a document by selectng Insert > Pcture and then choosng the flename of the graph you want from the lst of all pctures. The fle graph_tutoral4_f3.eps n EPS (Encapsulated PostScrpt) format: Page 9 of 33 pages
30 The fle graph_tutoral4_f3.wmf n Wndows Metafle format: Condtonal Margnal Effect of WGT on Car Prce at Sample Medan of MPG =, wth 95% Confdence Lmts Change n car prce (dollars) Weght (n pounds) Page 3 of 33 pages
31 The fle graph_tutoral4_f3.emf n Wndows Enhanced Metafle format: Condtonal Margnal Effect of WGT on Car Prce at Sample Medan of MPG =, wth 95% Confdence Lmts Change n car prce (dollars) Weght (n pounds) Page 3 of 33 pages
32 The fle graph_tutoral4_f3.png n PNG (Portable Network Graphcs) format: Page 3 of 33 pages
33 Preparng to End Your Stata Sesson Before you end your Stata sesson, you should do three thngs. Frst, you wll want to save the current data set. Enter ether of the followng save commands to save the current data set as Stata-format data set auto4.dta: save auto4 or save auto4, replace Second, close the log fle you have been recordng. Enter the command: log close Thrd, 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 35. There are three fles you wll want to be sure you have: the Stata log fle 45tutoral4.log; the Stata command log fle 45tutoral4.txt; and the saved Stata-format dataset auto4.dta. Fnally, you wll probably want to take wth you the several Stata graph fles you saved to dsk durng ths tutoral. 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. Page 33 of 33 pages
ECONOMICS 452* -- Stata 11 Tutorial 6. Stata 11 Tutorial 6. TOPIC: Representing Multi-Category Categorical Variables with Dummy Variable Regressors
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
More informationECONOMICS 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 informationy 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 informationSupport 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 informationLife 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 informationTN348: 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 informationAnalysis 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 informationSynthesizer 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 informationHermite 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 informationWishing 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 informationX- 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 informationCompiler 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 informationSolutions 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 informationFor 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 informationExercises (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 informationLobachevsky 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 informationNAG 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 information6.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 informationUSING 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 informationBrave 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 informationGWR 3 Software for Geographically Weighted Regression
GWR 3 Software for Geographcally Weghted Regresson Martn Charlton Stewart Fotherngham Chrs Brunsdon Spatal Analyss Research Group Department of Geography Unversty of Newcastle upon Tyne Newcastle upon
More informationProgramming 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 informationProblem 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 informationVirtual 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 informationPerformance Evaluation of Information Retrieval Systems
Why System Evaluaton? Performance Evaluaton of Informaton Retreval Systems Many sldes n ths secton are adapted from Prof. Joydeep Ghosh (UT ECE) who n turn adapted them from Prof. Dk Lee (Unv. of Scence
More informationThe 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 information11. HARMS How To: CSV Import
and Rsk System 11. How To: CSV Import Preparng the spreadsheet for CSV Import Refer to the spreadsheet template to ad algnng spreadsheet columns wth Data Felds. The spreadsheet s shown n the Appendx, an
More informationS1 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 informationSteps 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 informationCMPS 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 informationSome Advanced SPC Tools 1. Cumulative Sum Control (Cusum) Chart For the data shown in Table 9-1, the x chart can be generated.
Some Advanced SP Tools 1. umulatve Sum ontrol (usum) hart For the data shown n Table 9-1, the x chart can be generated. However, the shft taken place at sample #21 s not apparent. 92 For ths set samples,
More informationLecture 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 informationComplex 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 informationAnalysis 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 informationMathematics 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 informationEmpirical 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 information2x 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 informationR 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 informationParameter 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 informationIP 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 informationNGPM -- A NSGA-II Program in Matlab
Verson 1.4 LIN Song Aerospace Structural Dynamcs Research Laboratory College of Astronautcs, Northwestern Polytechncal Unversty, Chna Emal: lsssswc@163.com 2011-07-26 Contents Contents... 1. Introducton...
More informationProblem Definitions and Evaluation Criteria for Computational Expensive Optimization
Problem efntons and Evaluaton Crtera for Computatonal Expensve Optmzaton B. Lu 1, Q. Chen and Q. Zhang 3, J. J. Lang 4, P. N. Suganthan, B. Y. Qu 6 1 epartment of Computng, Glyndwr Unversty, UK Faclty
More informationA 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 informationVRT012 User s guide V0.1. Address: Žirmūnų g. 27, Vilnius LT-09105, Phone: (370-5) , Fax: (370-5) ,
VRT012 User s gude V0.1 Thank you for purchasng our product. We hope ths user-frendly devce wll be helpful n realsng your deas and brngng comfort to your lfe. Please take few mnutes to read ths manual
More informationIntro. 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 informationAgenda & Reading. Simple If. Decision-Making Statements. COMPSCI 280 S1C Applications Programming. Programming Fundamentals
Agenda & Readng COMPSCI 8 SC Applcatons Programmng Programmng Fundamentals Control Flow Agenda: Decsonmakng statements: Smple If, Ifelse, nested felse, Select Case s Whle, DoWhle/Untl, For, For Each, Nested
More informationA 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 information3D 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 information9. BASIC programming: Control and Repetition
Am: In ths lesson, you wll learn: H. 9. BASIC programmng: Control and Repetton Scenaro: Moz s showng how some nterestng patterns can be generated usng math. Jyot [after seeng the nterestng graphcs]: Usng
More informationSimulation: 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 informationNotes 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 informationStata data file Log file (explained below) ASCII (text) file
Usng Stata Welcome to Stata, one of the most un-user frendly programs ever created. Although later versons have some features to make t easer to use, they more than make up for t by not beng 00% compatble
More informationSignature 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 informationEconometrics 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 informationThe 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 information5 The Primal-Dual Method
5 The Prmal-Dual Method Orgnally desgned as a method for solvng lnear programs, where t reduces weghted optmzaton problems to smpler combnatoral ones, the prmal-dual method (PDM) has receved much attenton
More informationAP PHYSICS B 2008 SCORING GUIDELINES
AP PHYSICS B 2008 SCORING GUIDELINES General Notes About 2008 AP Physcs Scorng Gudelnes 1. The solutons contan the most common method of solvng the free-response questons and the allocaton of ponts for
More informationmquest 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 informationSLAM Summer School 2006 Practical 2: SLAM using Monocular Vision
SLAM Summer School 2006 Practcal 2: SLAM usng Monocular Vson Javer Cvera, Unversty of Zaragoza Andrew J. Davson, Imperal College London J.M.M Montel, Unversty of Zaragoza. josemar@unzar.es, jcvera@unzar.es,
More informationArray transposition in CUDA shared memory
Array transposton n CUDA shared memory Mke Gles February 19, 2014 Abstract Ths short note s nspred by some code wrtten by Jeremy Appleyard for the transposton of data through shared memory. I had some
More informationEXST7034 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 informationwith 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 informationANSYS FLUENT 12.1 in Workbench User s Guide
ANSYS FLUENT 12.1 n Workbench User s Gude October 2009 Copyrght c 2009 by ANSYS, Inc. All Rghts Reserved. No part of ths document may be reproduced or otherwse used n any form wthout express wrtten permsson
More informationDAD: 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 informationA mathematical programming approach to the analysis, design and scheduling of offshore oilfields
17 th European Symposum on Computer Aded Process Engneerng ESCAPE17 V. Plesu and P.S. Agach (Edtors) 2007 Elsever B.V. All rghts reserved. 1 A mathematcal programmng approach to the analyss, desgn and
More informationLECTURE NOTES Duality Theory, Sensitivity Analysis, and Parametric Programming
CEE 60 Davd Rosenberg p. LECTURE NOTES Dualty Theory, Senstvty Analyss, and Parametrc Programmng Learnng Objectves. Revew the prmal LP model formulaton 2. Formulate the Dual Problem of an LP problem (TUES)
More informationHelsinki University Of Technology, Systems Analysis Laboratory Mat Independent research projects in applied mathematics (3 cr)
Helsnk Unversty Of Technology, Systems Analyss Laboratory Mat-2.08 Independent research projects n appled mathematcs (3 cr) "! #$&% Antt Laukkanen 506 R ajlaukka@cc.hut.f 2 Introducton...3 2 Multattrbute
More informationFeature 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 informationSome material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier
Some materal adapted from Mohamed Youns, UMBC CMSC 611 Spr 2003 course sldes Some materal adapted from Hennessy & Patterson / 2003 Elsever Scence Performance = 1 Executon tme Speedup = Performance (B)
More informationLecture 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 informationPass by Reference vs. Pass by Value
Pass by Reference vs. Pass by Value Most methods are passed arguments when they are called. An argument may be a constant or a varable. For example, n the expresson Math.sqrt(33) the constant 33 s passed
More informationTECHNIQUE OF FORMATION HOMOGENEOUS SAMPLE SAME OBJECTS. Muradaliyev A.Z.
TECHNIQUE OF FORMATION HOMOGENEOUS SAMPLE SAME OBJECTS Muradalyev AZ Azerbajan Scentfc-Research and Desgn-Prospectng Insttute of Energetc AZ1012, Ave HZardab-94 E-mal:aydn_murad@yahoocom Importance of
More informationSetup and Use. Version 3.7 2/1/2014
Verson 3.7 2/1/2014 Setup and Use MaestroSoft, Inc. 1750 112th Avenue NE, Sute A200, Bellevue, WA 98004 425.688.0809 / 800.438.6498 Fax: 425.688.0999 www.maestrosoft.com Contents Text2Bd checklst 3 Preparng
More informationWhy 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 informationUser 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 informationTerm 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 informationComputer models of motion: Iterative calculations
Computer models o moton: Iteratve calculatons OBJECTIVES In ths actvty you wll learn how to: Create 3D box objects Update the poston o an object teratvely (repeatedly) to anmate ts moton Update the momentum
More informationSetup and Use. For events not using AuctionMaestro Pro. Version /7/2013
Verson 3.1.2 2/7/2013 Setup and Use For events not usng AuctonMaestro Pro MaestroSoft, Inc. 1750 112th Avenue NE, Sute A200, Bellevue, WA 98004 425.688.0809 / 800.438.6498 Fax: 425.688.0999 www.maestrosoft.com
More informationMRKOMNO. kéï=~ë=çñw= pfabufp=ud. aáöáí~ä=o~çáçöê~éüó. nìáåâ=êéñéêéååé=öìáçé==== båöäáëü
kéï=~ë=çñw= MRKOMNO pfabufp=ud aáöáí~ä=o~çáçöê~éüó nìáåâ=êéñéêéååé=öìáçé==== båöäáëü 0123 Ths product bears the CE markng n accordance wth the provsons of the Councl Drectve 93/42/EEC of June 14, 1993
More informationHelp 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 informationSix-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 informationThe 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 informationAn 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 informationThe Man-hour Estimation Models & Its Comparison of Interim Products Assembly for Shipbuilding
Internatonal Journal of Operatons Research Internatonal Journal of Operatons Research Vol., No., 9 4 (005) The Man-hour Estmaton Models & Its Comparson of Interm Products Assembly for Shpbuldng Bn Lu and
More informationAnonymisation of Public Use Data Sets
Anonymsaton of Publc Use Data Sets Methods for Reducng Dsclosure Rsk and the Analyss of Perturbed Data Harvey Goldsten Unversty of Brstol and Unversty College London and Natale Shlomo Unversty of Manchester
More informationAn Entropy-Based Approach to Integrated Information Needs Assessment
Dstrbuton Statement A: Approved for publc release; dstrbuton s unlmted. An Entropy-Based Approach to ntegrated nformaton Needs Assessment June 8, 2004 Wllam J. Farrell Lockheed Martn Advanced Technology
More informationLOOP 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 informationThis 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 informationA Facet Generation Procedure. for solving 0/1 integer programs
A Facet Generaton Procedure for solvng 0/ nteger programs by Gyana R. Parja IBM Corporaton, Poughkeepse, NY 260 Radu Gaddov Emery Worldwde Arlnes, Vandala, Oho 45377 and Wlbert E. Wlhelm Teas A&M Unversty,
More informationA Unified Framework for Semantics and Feature Based Relevance Feedback in Image Retrieval Systems
A Unfed Framework for Semantcs and Feature Based Relevance Feedback n Image Retreval Systems Ye Lu *, Chunhu Hu 2, Xngquan Zhu 3*, HongJang Zhang 2, Qang Yang * School of Computng Scence Smon Fraser Unversty
More informationMachine 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 informationC2 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 informationA Bootstrap Approach to Robust Regression
Internatonal Journal of Appled Scence and Technology Vol. No. 9; November A Bootstrap Approach to Robust Regresson Dr. Hamadu Dallah Department of Actuaral Scence and Insurance Unversty of Lagos Akoka,
More informationLS-TaSC Version 2.1. Willem Roux Livermore Software Technology Corporation, Livermore, CA, USA. Abstract
12 th Internatonal LS-DYNA Users Conference Optmzaton(1) LS-TaSC Verson 2.1 Wllem Roux Lvermore Software Technology Corporaton, Lvermore, CA, USA Abstract Ths paper gves an overvew of LS-TaSC verson 2.1,
More informationCS 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 informationProper Choice of Data Used for the Estimation of Datum Transformation Parameters
Proper Choce of Data Used for the Estmaton of Datum Transformaton Parameters Hakan S. KUTOGLU, Turkey Key words: Coordnate systems; transformaton; estmaton, relablty. SUMMARY Advances n technologes and
More informationCHAPTER 2 DECOMPOSITION OF GRAPHS
CHAPTER DECOMPOSITION OF GRAPHS. INTRODUCTION A graph H s called a Supersubdvson of a graph G f H s obtaned from G by replacng every edge uv of G by a bpartte graph,m (m may vary for each edge by dentfyng
More informationMachine Learning. Support Vector Machines. (contains material adapted from talks by Constantin F. Aliferis & Ioannis Tsamardinos, and Martin Law)
Machne Learnng Support Vector Machnes (contans materal adapted from talks by Constantn F. Alfers & Ioanns Tsamardnos, and Martn Law) Bryan Pardo, Machne Learnng: EECS 349 Fall 2014 Support Vector Machnes
More informationAn 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 informationModule 6: FEM for Plates and Shells Lecture 6: Finite Element Analysis of Shell
Module 6: FEM for Plates and Shells Lecture 6: Fnte Element Analyss of Shell 3 6.6. Introducton A shell s a curved surface, whch by vrtue of ther shape can wthstand both membrane and bendng forces. A shell
More information