Publications by Aritra

HW_3_AR

12.12.2024

1 Setup 1.0.1 Setup - empty variables and functions in the environment tab/window # Clear the workspace rm(list = ls()) # Clear environment gc() # Clear unused memory ## used (Mb) gc trigger (Mb) limit (Mb) max used (Mb) ## Ncells 534753 28.6 1193162 63.8 NA 669405 35.8 ## Vcells 992663 7.6 8388608 64.0 1...

9711 sym R (23258 sym/79 pcs) 3 img

HW-3_revised

12.12.2024

1 Introduction The objective is to analyze and model a data set containing information on approximately 12,000 commercially available wines. The variables are mostly related to the chemical properties of the wine being sold. The response variable is the number of sample cases of wine that were purchased by wine distribution companies after sampling...

10653 sym R (23979 sym/84 pcs) 4 img 1 tbl

Discussion

05.12.2024

#Clearing up the environment rm(list = ls()) 1 1. Issue Heteroskedasticity occurs when the variance of the error term in a regression model is not constant across all obvservations. This makes the standard errors unreliable, leading to incorrect conclusions about statistical significance. In the Breusch-Pagan or White test, the null hypothesis is ...

3880 sym R (10511 sym/52 pcs) 2 img

IV Discussion

21.11.2024

1. Research Question The authors aim to estimate the causal effect of changes in prison population size on crime rates. Specifically, they investigate whether increasing the number of incarcerated individuals reduces crime, and if so, by how much. 2. Naive OLS Regression Specification A novice econometrician might run the following OLS regression:...

3201 sym

Homework_2

07.11.2024

Setting up environment # Clear the workspace rm(list = ls()) # Clear environment gc() # Clear unused memory ## used (Mb) gc trigger (Mb) limit (Mb) max used (Mb) ## Ncells 530404 28.4 1180741 63.1 NA 669397 35.8 ## Vcells 989609 7.6 8388608 64.0 16384 1851879 14.2 cat("\f") # Clear the console graph...

14453 sym R (83435 sym/160 pcs) 23 img

Discussion_AR

31.10.2024

# Clear the workspace rm(list = ls()) # Clear environment - remove all files from your workspace invisible(gc()) # Clear unused memory cat("\f") # Clear the console graphics.off() # clear all graphs #Importing necessary libraries library(MASS) library(stargazer) ## ## Please cite as: ## Hlavac, Marek (2022). stargazer: Well-Format...

1671 sym R (12783 sym/29 pcs) 2 img

Document 8

24.10.2024

Environment Setup # Clear the workspace rm(list = ls()) # Clear environment gc() # Clear unused memory cat("\f") # Clear the console dev.off # Clear the charts #List all required packages packages <- c("plm", "tidyverse", "dplyr", "ggplot2", "kableExtra", ...

3285 sym R (39870 sym/19 pcs) 1 tbl

DID

10.10.2024

Setting up the environment #Clearing the environment rm(list = ls()) ## ## Please cite as: ## Hlavac, Marek (2022). stargazer: Well-Formatted Regression and Summary Statistics Tables. ## R package version 5.2.3. https://CRAN.R-project.org/package=stargazer ## ── Attaching core tidyverse packages ───────────────�...

2613 sym 1 img

Discussion-5

03.10.2024

#Clearing environment rm(list = ls()) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library(psych) library(stargazer) ## ## Please cite as: ## Hlavac, Marek (20...

2857 sym R (8886 sym/39 pcs)

Discussion-4

26.09.2024

#Clear the environment rm(list = ls()) #Installing necessary libraries invisible(library(AER)) library("psych") I. The Gauss-Markov assumptions are crucial for linear regression analysis: Linearity: 2.Linearity means we assume that when we change one thing, the outcome changes in a straightforward, predictable way. Imagine you're selling lemonade;...

9183 sym R (3277 sym/11 pcs) 2 img