Blog Archives

Bootstrapping a Single Statistic (k=1) The following example…

November 1, 2011
By
Bootstrapping a Single Statistic (k=1)

The following example…

Bootstrapping a Single Statistic (k=1) The following example generates the bootstrapped 95% confidence interval for R-squared in the linear regression of miles per gallon (mpg) on car weight (wt) and displacement (disp). The data source is mtcars. The...

Read more »

Line Plots (Econometric in R) Input: ##…

November 1, 2011
By
Line Plots (Econometric in R)

Input:

##…

Line Plots (Econometric in R) Input: ## ---------------------------- ## ## Plotting Points *and* Lines ## ## ---------------------------- ## pow = c(0.95, 0.6, 0.3, 0.15, 0.1, 0.05, 0.1, 0.15, 0.3, 0.6, 0.95) pow2 = c(0.99, 0.75, 0.4, 0.2, 0.15, 0.0...

Read more »

Simulation: Efficiency of mean with median Goal: Show the…

October 31, 2011
By
Simulation: Efficiency of mean with median

Goal: Show the…

Simulation: Efficiency of mean with median Goal: Show the efficiency of the mean when compared with the median using a large simulation where both estimators are applied on a sample of U(0,1) uniformly distributed random numbers. Input: # Goal: Show...

Read more »

Batman Equation Happy Halloween! Plot the Batman logo in…

October 31, 2011
By
Batman Equation

Happy Halloween! Plot the Batman logo in…

Batman Equation Happy Halloween! Plot the Batman logo in CloudStat with the legendary Batman Equation.

Read more »

Testing for…

October 31, 2011
By
Testing for…

Input Output Testing for regression Input: advertising=c(1,2,3,4,5) sales=c(1,1,2,2,4) sales.Reg=lm(sales~advertising) summary(sales.Reg) Output: > advertising=c(1,2,3,4,5) > sales=c(1,1,2,2,4) > > sales.Reg=lm(sales~advertising) > summary...

Read more »