Publications by purevdorj
Finals
R Markdown ## Chapter 7 # Exercise 1 # Load libraries library(wooldridge) ## Warning: package 'wooldridge' was built under R version 4.4.2 library(broom) ## Warning: package 'broom' was built under R version 4.4.2 library(car) ## Loading required package: carData # Load the dataset data("sleep75") # Fit the regression model model <- lm(slee...
244 sym R (57864 sym/209 pcs) 1 img
Document
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...
622 sym R (5908 sym/22 pcs) 14 img
In Class Chapter 11
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...
616 sym R (5852 sym/19 pcs) 13 img
In Class Exercise Chapter 10
R Markdown library(wooldridge) ## Warning: package 'wooldridge' was built under R version 4.4.1 data("barium") # (C2 Part (i)) barium$trend <- barium$t # Use the variable 't' as the linear time trend model1 <- lm(log(chnimp) ~ trend + log(chempi) + log(gas) + log(rtwex), data = barium) summary(model1) ## ## Call: ## lm(formula = log(chnimp...
37 sym R (6329 sym/21 pcs)
In Class Ex Chapter 9
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. library(wooldridge) ## Warning: package 'wooldridge' was built under R version 4.4.1 library(lmtest) ## Loading required package: zoo ## ## Attac...
368 sym R (3928 sym/34 pcs)
In Class Exercise Chapter 8
R Markdown library(wooldridge) ## Warning: package 'wooldridge' was built under R version 4.4.1 library(sandwich) ## Warning: package 'sandwich' was built under R version 4.4.2 library(lmtest) ## Loading required package: zoo ## ## Attaching package: 'zoo' ## The following objects are masked from 'package:base': ## ## as.Date, as.Date.nume...
60 sym R (6908 sym/44 pcs)
In class Chapter 7
R ##1 library(wooldridge) ## Warning: package 'wooldridge' was built under R version 4.4.1 data("wage2", package = "wooldridge") model1 <- lm(log(wage) ~ educ + exper + tenure + married + black + south + urban, data = wage2) summary(model1) ## ## Call: ## lm(formula = log(wage) ~ educ + exper + tenure + married + black + ## south + urba...
22 sym R (5685 sym/15 pcs)
In Class chapter 6
R Markdown ##Part1 # Load the wooldridge package and data library(wooldridge) ## Warning: package 'wooldridge' was built under R version 4.4.1 data("vote1") # Estimate the model with interaction term model <- lm(voteA ~ prtystrA + expendA + expendB + I(expendA * expendB), data = vote1) summary(model) ## ## Call: ## lm(formula = voteA ~ prt...
156 sym R (4437 sym/14 pcs)
Midexam
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. ##Chapter 2 ##C9 library(wooldridge) ## Warning: package 'wooldridge' was built under R version 4.4.1 data(countymurders) county_murders_1996 ...
451 sym R (30274 sym/97 pcs) 2 img
in class chapter 4
## Warning: package 'wooldridge' was built under R version 4.4.1 ## ## Call: ## lm(formula = log(psoda) ~ prpblck + log(income) + prppov, data = discrim) ## ## Residuals: ## Min 1Q Median 3Q Max ## -0.32218 -0.04648 0.00651 0.04272 0.35622 ## ## Coefficients: ## Estimate Std. Error t value Pr(>|t...
134 sym