Publications by Delgerekh
Final Exam
#Chapter 7 #Question 1 library(wooldridge) data("sleep75") data(sleep75) model <- lm(sleep ~ totwrk + educ + age + agesq + male , data = sleep75) summary(model) ## ## Call: ## lm(formula = sleep ~ totwrk + educ + age + agesq + male, data = sleep75) ## ## Residuals: ## Min 1Q Median 3Q Max ## -2378.00 -243.29 6.74 ...
463 sym R (37682 sym/100 pcs)
Midterm-Delgerekh
#Chapter 2 #C9 #Load the wooldridge library library(wooldridge) # Load the dataset data("countymurders") # (i) How many counties had zero murders in 1996? zero_murders_count <- sum(countymurders$year == 1996 & countymurders$murders == 0) cat("Counties with zero murders in 1996:", zero_murders_count, "\n") ## Counties with zero murders in 1996: 10...
239 sym R (39534 sym/234 pcs) 2 img
midterm
#Chapter 2 #C9 #Load the wooldridge library library(wooldridge) # Load the dataset data("countymurders") # (i) How many counties had zero murders in 1996? zero_murders_count <- sum(countymurders$year == 1996 & countymurders$murders == 0) cat("Counties with zero murders in 1996:", zero_murders_count, "\n") ## Counties with zero murders in 1996: 10...
239 sym R (39536 sym/234 pcs) 2 img
Midterm-Delgerekh
#Chapter 2 #C9 #Load the wooldridge library library(wooldridge) # Load the dataset data("countymurders") # (i) How many counties had zero murders in 1996? zero_murders_count <- sum(countymurders$year == 1996 & countymurders$murders == 0) cat("Counties with zero murders in 1996:", zero_murders_count, "\n") ## Counties with zero murders in 1996: 10...
239 sym R (39534 sym/234 pcs) 2 img
homework3-Delgerekh
(i) Simple Regression Model Model: log(price) = Bo + B1*log(dist) + u # B1= 0,36488 # Subset the data for the year 1981 data_1981 <- subset(data, year == 1981) # Perform simple regression model1 <- lm(log(price) ~ log(dist), data = data_1981) summary(model1) ## ## Call: ## lm(formula = log(price) ~ log(dist), data = data_1981) ## ## Residuals: ##...
628 sym
homework2
C2 log(price) = 9.40 +0.312*log(dist) ; n = 135, R^2 = 0.162 ## wage hours IQ KWW educ exper tenure age married black south urban sibs ## 1 769 40 93 35 12 11 2 31 1 0 0 1 1 ## 2 808 50 119 41 18 11 16 37 1 0 0 1 1 ## 3 825 40 108 46 14 11 9 33 1 ...
245 sym
Delgerekh-Final exam
Questions: 1. Import data Download ETF daily data from yahoo with ticker names of SPY, QQQ, EEM, IWM, EFA, TLT, IYR and GLD from 2010 to current date (See http://etfdb.com/ for ETF information). (Hint: Use library quantmod to help you to download these prices. You can also reference my github web: https://github.com/swtzang/portfolio_2019_frontier...
1595 sym R (5621 sym/14 pcs) 2 tbl
Delgerekh
R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the...
591 sym 1 img