Chat with us, powered by LiveChat University of California Berkeley R Script with Econometrics Questions - STUDENT SOLUTION USA

Description

# ECON 312, HW1
# Name:
#
# Instructions: read this program (R-script) and follow instructions below.
#
# Clearing the global environment and closing figures
rm(list=ls()) #rm(list of objects) removes all objects from memory
graphics.off() #Closing all previously open graphs
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
#
#
I.
Illustrating the concepts: random sample, estimator, estimate
#
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
# The next chunk of code generates 5 random samples of 10 observations from a
# die toss. Each random sample is stored in data.frame X, in separate column.
# Then the population mean (we know it is 3.5) is estimated with sample
average
# as the estimator. Run this chuck of code and inspect the resulting random
# samples and estimation results.
s
Purchase answer to see full
attachment

error: Content is protected !!