Publications by Arvind Sharma

Boot_Strapping

12.12.2023

1 Set Up # Clear the workspace rm(list = ls()) # Clear environment gc() # Clear unused memory ## used (Mb) gc trigger (Mb) limit (Mb) max used (Mb) ## Ncells 525472 28.1 1166702 62.4 NA 669291 35.8 ## Vcells 966904 7.4 8388608 64.0 32768 1840401 14.1 cat("\f") # Clear the console if(!is.n...

5364 sym R (3261 sym/22 pcs) 2 img

Box_Cox

12.12.2023

1 Intro The Box-Cox transformation is a family of power transformations that are used to stabilize the variance and make a dataset more closely approximate a normal distribution. It is named after statisticians George Box and Sir David Cox who introduced it in a 1964 paper. https://www.jstor.org/stable/2984418?seq=4 Here, y is the original variabl...

5219 sym R (4444 sym/28 pcs) 10 img

HW5

12.12.2023

For Review, watch LINEAR REGRESSION IN R The attached .csv file has data pertaining to hospital expenditures (dependent variable). The column RVUs is a representation of standard outpatient workload. Using R, conduct correlation analysis (between the two variables) and interpret. Then fit a linear model with Expenditure as the dependent variable (...

11516 sym 17 img

log_variable_for_fit_r2

12.12.2023

# Clear the workspace rm(list = ls()) # Clear environment gc() # Clear unused memory ## used (Mb) gc trigger (Mb) limit (Mb) max used (Mb) ## Ncells 525349 28.1 1166355 62.3 NA 669282 35.8 ## Vcells 965348 7.4 8388608 64.0 32768 1840431 14.1 cat("\f") # Clear the console if(!is.null(dev.l...

2795 sym R (5524 sym/23 pcs) 10 img

logit

12.12.2023

1 SetUp https://www.ucl.ac.uk/~uctqiax/PUBLG100/2015/week9/seminar9.html 1.1 Packages # install.packages("https://cran.r-project.org/src/contrib/Archive/Zelig/Zelig_4.2-1.tar.gz", # repos=NULL, # type="source") # install.packages("sandwich") # packageVersion("Zelig") # # install.packages("Zelig") # install.packa...

2585 sym R (9798 sym/51 pcs) 2 img 3 tbl

linear_algebra

06.12.2023

# Clear the workspace rm(list = ls()) # Clear environment gc() # Clear unused memory ## used (Mb) gc trigger (Mb) limit (Mb) max used (Mb) ## Ncells 527937 28.2 1173752 62.7 NA 669277 35.8 ## Vcells 968957 7.4 8388608 64.0 16384 1840308 14.1 cat("\f") # Clear the console 1 Data 1.1 Export ...

232 sym R (10307 sym/29 pcs) 4 img

simple_linear_regression

05.12.2023

1 Data 1.1 Export Data to Excel df <- attitude getwd() ## [1] "/Users/arvindsharma/Library/CloudStorage/Dropbox/WCAS/Data Analysis/Data Analysis - Fall 2023/Data Analysis - Fall 2023 (shared files)/Week 14" write.csv(x = df, file = "attitude_data") 2 Linear Regression model1 <- lm(data = df, formula = rating ~ complaints) summary(model1) ## ...

109 sym

heteroskedasticty_white

01.12.2023

1 Estimate a Multivariate Regression Should have atleast 3 independent variables. 1.1 Data Choose your data. I will continue with the data for my OLS point estimates in OLS_matrixVSlm in W1 remove(list=ls()) # install.packages("MASS") library(MASS) help(Boston) str(Boston) # 506 rows and 14 columns. ## 'data.frame': 506 obs. of 14 variabl...

7112 sym R (10782 sym/48 pcs) 2 img

correlation_covariance

28.11.2023

Correlation and covariance are both measures of the relationship between two variables in statistics. Covariance: Definition: Covariance is a measure of how much two variables change together. It indicates the direction of the linear relationship between two variables (whether they tend to increase or decrease together). Formula: For two variabl...

2165 sym

Resume_Experiment_RCT

23.11.2023

1 Set Up # Clear the workspace rm(list = ls()) # Clear environment gc() # Clear unused memory ## used (Mb) gc trigger (Mb) limit (Mb) max used (Mb) ## Ncells 525780 28.1 1167594 62.4 NA 669268 35.8 ## Vcells 967837 7.4 8388608 64.0 32768 1840504 14.1 cat("\f") # Clear the console The LST pack...

2280 sym R (11932 sym/89 pcs) 4 img