##soru Tesla hisse senedI

summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

##cevap

You can also embed plots, for example:

##Tesla, Inc. 

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.

##soru

##cevap

##getSymbols("TSLA")
 knitr::opts_chunk$set(echo = TRUE)
summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

##Soru ##cevap

library(wooldridge)
data(wage)
## Warning in data(wage): data set 'wage' not found
head(wage1)
##   wage educ exper tenure nonwhite female married numdep smsa northcen south
## 1 3.10   11     2      0        0      1       0      2    1        0     0
## 2 3.24   12    22      2        0      1       1      3    1        0     0
## 3 3.00   11     2      0        0      0       0      2    0        0     0
## 4 6.00    8    44     28        0      0       1      0    1        0     0
## 5 5.30   12     7      2        0      0       1      1    0        0     0
## 6 8.75   16     9      8        0      0       1      0    1        0     0
##   west construc ndurman trcommpu trade services profserv profocc clerocc
## 1    1        0       0        0     0        0        0       0       0
## 2    1        0       0        0     0        1        0       0       0
## 3    1        0       0        0     1        0        0       0       0
## 4    1        0       0        0     0        0        0       0       1
## 5    1        0       0        0     0        0        0       0       0
## 6    1        0       0        0     0        0        1       1       0
##   servocc    lwage expersq tenursq
## 1       0 1.131402       4       0
## 2       1 1.175573     484       4
## 3       0 1.098612       4       0
## 4       0 1.791759    1936     784
## 5       0 1.667707      49       4
## 6       0 2.169054      81      64

##soru

##cevap

library(wooldridge)
data("prison")
head(prison)
##   state year govelec  black     metro    unem     criv     crip    lcriv
## 1     1   80       0 0.2560 0.6320000 0.08775 4.447868 44.47638 1.492425
## 2     1   81       0 0.2557 0.6362000 0.10667 4.700944 44.24879 1.547763
## 3     1   82       1 0.2554 0.6404000 0.14367 4.497580 42.05045 1.503539
## 4     1   83       0 0.2551 0.6446000 0.13667 4.186833 37.08439 1.431945
## 5     1   84       0 0.2548 0.6488000 0.11167 4.353239 35.04226 1.470920
## 6     1   85       0 0.2545 0.6530001 0.08908 4.630758 35.26680 1.532721
##      lcrip       gcriv        gcrip y81 y82 y83 y84 y85 y86 y87 y88 y89 y90 y91
## 1 3.794958  0.09878576  0.174785137   0   0   0   0   0   0   0   0   0   0   0
## 2 3.789828  0.05533838 -0.005130053   1   0   0   0   0   0   0   0   0   0   0
## 3 3.738870 -0.04422402 -0.050958157   0   1   0   0   0   0   0   0   0   0   0
## 4 3.613196 -0.07159472 -0.125673771   0   0   1   0   0   0   0   0   0   0   0
## 5 3.556555  0.03897560 -0.056641579   0   0   0   1   0   0   0   0   0   0   0
## 6 3.562942  0.06180036  0.006387472   0   0   0   0   1   0   0   0   0   0   0
##   y92 y93    ag0_14    ag15_17   ag18_24   ag25_34     incpc    polpc
## 1   0   0 0.2408834 0.05752439 0.1322547 0.1538264  7673.176 235.0026
## 2   0   0 0.2367951 0.05460577 0.1324317 0.1584588  8442.723 227.2263
## 3   0   0 0.2336306 0.05197452 0.1317197 0.1584713  8855.808 219.4395
## 4   0   0 0.2313167 0.04956787 0.1304016 0.1596340  9411.027 222.5979
## 5   0   0 0.2279858 0.04858300 0.1277834 0.1609312 10267.680 214.3978
## 6   0   0 0.2252706 0.04882960 0.1240876 0.1625975 10974.390 220.5386
##       gincpc      gpolpc      cag0_14      cag15_17      cag18_24     cag25_34
## 1 0.08963448  0.05418698 -0.001227303 -0.0011926270  7.678985e-05 1.989880e-03
## 2 0.09557420 -0.03364984 -0.004088306 -0.0029186297  1.769924e-04 4.632387e-03
## 3 0.04776863 -0.03487009 -0.003164520 -0.0026312447 -7.120037e-04 1.255035e-05
## 4 0.06080865  0.01429031 -0.002313862 -0.0024066495 -1.318111e-03 1.162624e-03
## 5 0.08711895 -0.03753379 -0.003330898 -0.0009848737 -2.618227e-03 1.297207e-03
## 6 0.06656328  0.02823989 -0.002715244  0.0002466011 -3.695812e-03 1.666374e-03
##          cunem      cblack       cmetro     pris    lpris       gpris final1
## 1  0.016750002 -0.05999947 0.0002000046 141.3347 4.951131 -0.02065945      0
## 2  0.018919993 -0.03000069 0.0041999817 163.5336 5.097019  0.14588785      0
## 3  0.036999997 -0.02999878 0.0042000199 183.6948 5.213276  0.11625719      0
## 4 -0.006999998 -0.03000069 0.0041999817 218.6242 5.387354  0.17407846      0
## 5 -0.025000000 -0.03000069 0.0041999817 245.0686 5.501538  0.11418390      0
## 6 -0.022589998 -0.02999878 0.0042000581 259.2611 5.557836  0.05629730      0
##   final2
## 1      0
## 2      0
## 3      0
## 4      0
## 5      0
## 6      0

##soru

##cevap

WDI::WDIsearch("exchange rate")
##       indicator                   
##  [1,] "DPANUSLCU"                 
##  [2,] "DPANUSSPB"                 
##  [3,] "DPANUSSPF"                 
##  [4,] "DT.DOD.DECT.CD.AR.EX.US"   
##  [5,] "DT.DOD.DECT.CD.CB.AR.EX.US"
##  [6,] "DT.DOD.DECT.CD.GG.AR.EX.US"
##  [7,] "DT.DOD.DECT.CD.IL.AR.EX.US"
##  [8,] "DT.DOD.DECT.CD.MA.AR.EX.US"
##  [9,] "DT.DOD.DECT.CD.OT.AR.EX.US"
## [10,] "DT.DOD.DIDI.CD.IL.EX.US"   
## [11,] "DT.DOD.DIFE.CD.IL.EX.US"   
## [12,] "DT.DOD.DIIE.CD.IL.EX.US"   
## [13,] "DT.DOD.DLBN.CD.CB.AR.EX.US"
## [14,] "DT.DOD.DLBN.CD.GG.AR.EX.US"
## [15,] "DT.DOD.DLBN.CD.MA.AR.EX.US"
## [16,] "DT.DOD.DLBN.CD.OT.AR.EX.US"
## [17,] "DT.DOD.DLCD.CD.CB.AR.EX.US"
## [18,] "DT.DOD.DLCD.CD.GG.AR.EX.US"
## [19,] "DT.DOD.DLCD.CD.MA.AR.EX.US"
## [20,] "DT.DOD.DLCD.CD.OT.AR.EX.US"
## [21,] "DT.DOD.DLTL.CD.CB.AR.EX.US"
## [22,] "DT.DOD.DLTL.CD.GG.AR.EX.US"
## [23,] "DT.DOD.DLTL.CD.MA.AR.EX.US"
## [24,] "DT.DOD.DLTL.CD.OT.AR.EX.US"
## [25,] "DT.DOD.DLTO.CD.CB.AR.EX.US"
## [26,] "DT.DOD.DLTO.CD.GG.AR.EX.US"
## [27,] "DT.DOD.DLTO.CD.MA.AR.EX.US"
## [28,] "DT.DOD.DLTO.CD.OT.AR.EX.US"
## [29,] "DT.DOD.DLTS.CD.GG.EX.US"   
## [30,] "DT.DOD.DLTS.CD.MA.AR.EX.US"
## [31,] "DT.DOD.DLTT.CD.CB.AR.EX.US"
## [32,] "DT.DOD.DLTT.CD.GG.AR.EX.US"
## [33,] "DT.DOD.DLTT.CD.MA.AR.EX.US"
## [34,] "DT.DOD.DLTT.CD.OT.AR.EX.US"
## [35,] "DT.DOD.DLXF.CD.CB.AR.EX.US"
## [36,] "DT.DOD.DLXF.CD.GG.AR.EX.US"
## [37,] "DT.DOD.DLXF.CD.MA.AR.EX.US"
## [38,] "DT.DOD.DLXF.CD.OT.AR.EX.US"
## [39,] "DT.DOD.DSCD.CD.CB.AR.EX.US"
## [40,] "DT.DOD.DSCD.CD.GG.AR.EX.US"
## [41,] "DT.DOD.DSCD.CD.MA.AR.EX.US"
## [42,] "DT.DOD.DSCD.CD.OT.AR.EX.US"
## [43,] "DT.DOD.DSOO.CD.CB.AR.EX.US"
## [44,] "DT.DOD.DSOO.CD.GG.AR.EX.US"
## [45,] "DT.DOD.DSOO.CD.MA.AR.EX.US"
## [46,] "DT.DOD.DSOO.CD.OT.AR.EX.US"
## [47,] "DT.DOD.DSTC.CD.CB.AR.EX.US"
## [48,] "DT.DOD.DSTC.CD.GG.AR.EX.US"
## [49,] "DT.DOD.DSTC.CD.MA.AR.EX.US"
## [50,] "DT.DOD.DSTC.CD.OT.AR.EX.US"
## [51,] "DT.DOD.DSTL.CD.CB.AR.EX.US"
## [52,] "DT.DOD.DSTL.CD.GG.AR.EX.US"
## [53,] "DT.DOD.DSTL.CD.MA.AR.EX.US"
## [54,] "DT.DOD.DSTL.CD.OT.AR.EX.US"
## [55,] "DT.DOD.DSTM.CD.CB.AR.EX.US"
## [56,] "DT.DOD.DSTM.CD.GG.AR.EX.US"
## [57,] "DT.DOD.DSTM.CD.MA.AR.EX.US"
## [58,] "DT.DOD.DSTM.CD.OT.AR.EX.US"
## [59,] "DT.DOD.DSTT.CD.CB.AR.EX.US"
## [60,] "DT.DOD.DSTT.CD.GG.AR.EX.US"
## [61,] "DT.DOD.DSTT.CD.MA.AR.EX.US"
## [62,] "DT.DOD.DSTT.CD.OT.AR.EX.US"
## [63,] "NEER"                      
## [64,] "PA.NUS.FCRF"               
## [65,] "PA.NUS.FCRF.XR"            
## [66,] "PA.NUS.PPPC.RF"            
## [67,] "PE.NUS.FCAE"               
## [68,] "PX.REC.REER"               
## [69,] "PX.REX.REER"               
## [70,] "REER"                      
## [71,] "SP.EXCHG.RATE.ICP"         
##       name                                                                                                                         
##  [1,] "Official exchange rate, LCU per USD, period average"                                                                        
##  [2,] "Exchange rate, new LCU per USD extended backward, period average"                                                           
##  [3,] "Exchange rate, old LCU per USD extended forward, period average"                                                            
##  [4,] "Gross Ext. Debt Pos., All Sectors, All maturities, All instruments,  Exchange rate chg, USD"                                
##  [5,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, All maturities, All instruments, Exchange rate chg, USD"               
##  [6,] "Gross Ext. Debt Pos., General Government, All maturities, All instruments, Exchange rate chg, USD"                          
##  [7,] "Gross Ext. Debt Pos., DI: Intercom Lending, All maturities, All instruments, Exchange rate chg, USD"                        
##  [8,] "Gross Ext. Debt Pos., Central Bank, All maturities, All instruments, Exchange rate chg, USD"                                
##  [9,] "Gross Ext. Debt Pos., Other Sectors, All maturities, All instruments, Exchange rate chg, USD"                               
## [10,] "Gross Ext. Debt Pos., DI: Intercom Lending, All maturities, Debt liab. of DI ent. to dir. investors, Exchange rate chg, USD"
## [11,] "Gross Ext. Debt Pos., DI: Intercom Lending, All maturities, Debt liab. to fellow ent., Exchange rate chg, USD"              
## [12,] "Gross Ext. Debt Pos., DI: Intercom Lending, All maturities, Debt liab. of dir. investors to DI ent., Exchange rate chg, USD"
## [13,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, Long-term, Debt securities, Exchange rate chg, USD"                    
## [14,] "Gross Ext. Debt Pos., General Government, Long-term, Debt securities, Exchange rate chg, USD"                               
## [15,] "Gross Ext. Debt Pos., Central Bank, Long-term, Debt securities, Exchange rate chg, USD"                                     
## [16,] "Gross Ext. Debt Pos., Other Sectors, Long-term, Debt securities, Exchange rate chg, USD"                                    
## [17,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, Long-term, Currency and deposits, Exchange rate chg, USD"              
## [18,] "Gross Ext. Debt Pos., General Government, Long-term, Currency and deposits, Exchange rate chg, USD"                         
## [19,] "Gross Ext. Debt Pos., Central Bank, Long-term, Currency and deposits, Exchange rate chg, USD"                               
## [20,] "Gross Ext. Debt Pos., Other Sectors, Long-term, Currency and deposits, Exchange rate chg, USD"                              
## [21,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, Long-term, Loans, Exchange rate chg, USD"                              
## [22,] "Gross Ext. Debt Pos., General Government, Long-term, Loans, Exchange rate chg, USD"                                         
## [23,] "Gross Ext. Debt Pos., Central Bank, Long-term, Loans, Exchange rate chg, USD"                                               
## [24,] "Gross Ext. Debt Pos., Other Sectors, Long-term, Loans, Exchange rate chg, USD"                                              
## [25,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, Long-term, Other debt liabilities, Exchange rate chg, USD"             
## [26,] "Gross Ext. Debt Pos., General Government, Long-term, Other debt liabilities, Exchange rate chg, USD"                        
## [27,] "Gross Ext. Debt Pos., Central Bank, Long-term, Other debt liabilities, Exchange rate chg, USD"                              
## [28,] "Gross Ext. Debt Pos., Other Sectors, Long-term, Other debt liabilities, Exchange rate chg, USD"                             
## [29,] "Gross Ext. Debt Pos., General Government, Long-term, Special drawing rights (allocations), Exchange rate chg, USD"          
## [30,] "Gross Ext. Debt Pos., Central Bank, Long-term, Special drawing rights (allocations), Exchange rate chg, USD"                
## [31,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, Long-term, Trade credit and advances, Exchange rate chg, USD"          
## [32,] "Gross Ext. Debt Pos., General Government, Long-term, Trade credit and advances, Exchange rate chg, USD"                     
## [33,] "Gross Ext. Debt Pos., Central Bank, Long-term, Trade credit and advances, Exchange rate chg, USD"                           
## [34,] "Gross Ext. Debt Pos., Other Sectors, Long-term, Trade credit and advances, Exchange rate chg, USD"                          
## [35,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, Long-term, All instruments, Exchange rate chg, USD"                    
## [36,] "Gross Ext. Debt Pos., General Government, Long-term, All instruments, Exchange rate chg, USD"                               
## [37,] "Gross Ext. Debt Pos., Central Bank, Long-term, All instruments, Exchange rate chg, USD"                                     
## [38,] "Gross Ext. Debt Pos., Other Sectors, Long-term, All instruments, Exchange rate chg, USD"                                    
## [39,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, Short-term, Currency and deposits, Exchange rate chg, USD"             
## [40,] "Gross Ext. Debt Pos., General Government, Short-term, Currency and deposits, Exchange rate chg, USD"                        
## [41,] "Gross Ext. Debt Pos., Central Bank, Short-term, Currency and deposits, Exchange rate chg, USD"                              
## [42,] "Gross Ext. Debt Pos., Other Sectors, Short-term, Currency and deposits, Exchange rate chg, USD"                             
## [43,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, Short-term, Other debt liabilities, Exchange rate chg, USD"            
## [44,] "Gross Ext. Debt Pos., General Government, Short-term, Other debt liabilities, Exchange rate chg, USD"                       
## [45,] "Gross Ext. Debt Pos., Central Bank, Short-term, Other debt liabilities, Exchange rate chg, USD"                             
## [46,] "Gross Ext. Debt Pos., Other Sectors, Short-term, Other debt liabilities, Exchange rate chg, USD"                            
## [47,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, Short-term, All instruments, Exchange rate chg, USD"                   
## [48,] "Gross Ext. Debt Pos., General Government, Short-term, All instruments, Exchange rate chg, USD"                              
## [49,] "Gross Ext. Debt Pos., Central Bank, Short-term, All instruments, Exchange rate chg, USD"                                    
## [50,] "Gross Ext. Debt Pos., Other Sectors, Short-term, All instruments, Exchange rate chg, USD"                                   
## [51,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, Short-term, Loans, Exchange rate chg, USD"                             
## [52,] "Gross Ext. Debt Pos., General Government, Short-term, Loans, Exchange rate chg, USD"                                        
## [53,] "Gross Ext. Debt Pos., Central Bank, Short-term, Loans, Exchange rate chg, USD"                                              
## [54,] "Gross Ext. Debt Pos., Other Sectors, Short-term, Loans, Exchange rate chg, USD"                                             
## [55,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, Short-term, Debt securities, Exchange rate chg, USD"                   
## [56,] "Gross Ext. Debt Pos., General Government, Short-term, Debt securities, Exchange rate chg, USD"                              
## [57,] "Gross Ext. Debt Pos., Central Bank, Short-term, Debt securities, Exchange rate chg, USD"                                    
## [58,] "Gross Ext. Debt Pos., Other Sectors, Short-term, Debt securities, Exchange rate chg, USD"                                   
## [59,] "Gross Ext. Debt Pos., Deposit-Taking Corp., exc. CB, Short-term, Trade credit and advances, Exchange rate chg, USD"         
## [60,] "Gross Ext. Debt Pos., General Government, Short-term, Trade credit and advances, Exchange rate chg, USD"                    
## [61,] "Gross Ext. Debt Pos., Central Bank, Short-term, Trade credit and advances, Exchange rate chg, USD"                          
## [62,] "Gross Ext. Debt Pos., Other Sectors, Short-term, Trade credit and advances, Exchange rate chg, USD"                         
## [63,] "Nominal Effecive Exchange Rate"                                                                                             
## [64,] "Official exchange rate (LCU per US$, period average)"                                                                       
## [65,] "Official exchange rate to parallel exchange rate ratio"                                                                     
## [66,] "Price level ratio of PPP conversion factor (GDP) to market exchange rate"                                                   
## [67,] "Official exchange rate (LCU per US$, end period)"                                                                           
## [68,] "Real effective exchange rate index (line rec, 2005 = 100)"                                                                  
## [69,] "Real effective exchange rate index (2010 = 100)"                                                                            
## [70,] "Real Effective Exchange Rate"                                                                                               
## [71,] "SP.EXCHG.RATE.ICP:Exchange Rate Value"

##soru EXPENSE OF GDP ##cevap

library(WDI)
 df = WDI(indicator='GC.XPN.TOTL.GD.ZS', country=c('MX','TR','US'), start=1960, end=2018)
 head(df)
##   iso2c country GC.XPN.TOTL.GD.ZS year
## 1    MX  Mexico          20.42065 2018
## 2    MX  Mexico          20.41178 2017
## 3    MX  Mexico          20.96416 2016
## 4    MX  Mexico          21.60665 2015
## 5    MX  Mexico          21.78179 2014
## 6    MX  Mexico          21.55132 2013

##soru EXPENSE OF GDP

##cevap

library(WDI)
 df = WDI(indicator='SE.PRM.UNER.FE', country=c('TR','US'), start=1960, end=2018)
 head(df)
##   iso2c country SE.PRM.UNER.FE year
## 1    TR  Turkey         138292 2018
## 2    TR  Turkey         143085 2017
## 3    TR  Turkey         162135 2016
## 4    TR  Turkey         147831 2015
## 5    TR  Turkey         149901 2014
## 6    TR  Turkey         183138 2013

##SORU Labor force total

##cevap

library(WDI)
 df = WDI(indicator='SL.TLF.TOTL.IN', country=c('TR','US'), start=1960, end=2018)
 head(df)
##   iso2c country SL.TLF.TOTL.IN year
## 1    TR  Turkey       32982454 2018
## 2    TR  Turkey       32114851 2017
## 3    TR  Turkey       30980381 2016
## 4    TR  Turkey       29937508 2015
## 5    TR  Turkey       28906173 2014
## 6    TR  Turkey       28208333 2013

##soru

labor force total

##cevap

library(WDI)
 df = WDI(indicator='SL.TLF.TOTL.IN', country=c('MX','TR','US'), start=1960, end=2018)
 head(df)
##   iso2c country SL.TLF.TOTL.IN year
## 1    MX  Mexico       55190039 2018
## 2    MX  Mexico       54096291 2017
## 3    MX  Mexico       53507498 2016
## 4    MX  Mexico       52732562 2015
## 5    MX  Mexico       51780845 2014
## 6    MX  Mexico       51318641 2013