View neuralnet.r
# ------------------------------------------------------------------
# |PROGRAM NAME: NEURALNET_PKG_R
# |DATE: 12/3/10
# |CREATED BY: MATT BOGARD
# |PROJECT FILE: http://econometricsense.blogspot.com/2010/12/r-code-example-for-neural-networks.html
# |----------------------------------------------------------------
# | PURPOSE: DEMO OF THE 'neuralnet' PACKAGE AND OUTPUT INTERPRETATION
# |
# | ADAPTED FROM: neuralnet: Training of Neural Networks
# | by Frauke Günther and Stefan Fritsch The R Journal Vol. 2/1, June 2010
View bubble crops.r
# -------------------------------------------------------------
# | PROGRAM NAME: Bubble_Crops
# | DATE: 12-4-2010
# | CREATED BY: Matt Bogard
# | PROJECT FILE: http://econometricsense.blogspot.com/2010/12/visualizing-agricultural-subsidies-by.html
# |-------------------------------------------------------------
# | PURPOSE: Intitially to create bubble charts to demonstrate
# | allocation
# | of farm subsides to producers by KY county, but expanded to
# | include
View google vis.r
# ------------------------------------------------------------------
# | PROGRAM NAME: googleVis_R
# | DATE: 1/12/11
# | CREATED BY: Matt Bogard
# | PROJECT FILE:http://econometricsense.blogspot.com/2011/01/r-code-for-googlevis-demo.html
# |----------------------------------------------------------------
# | PURPOSE: Tutorial for creating Motion Charts in R with the GoogleVis package
# |
# |
# |
View density plots.r
### r code to support: http://econometricsense.blogspot.com/2011/01/flexibility-of-r-graphics.html
library(colorspace) # package for rainbow_hcl function
ds <- rbind(data.frame(dat=KyCropsAndSubsidies[,][,"LogAcres"], grp="All"),
data.frame(dat=KyCropsAndSubsidies[,][KyCropsAndSubsidies$subsidy_in_millions > 2.76,"LogAcres"], grp=">median"),
data.frame(dat=KyCropsAndSubsidies[,][KyCropsAndSubsidies$subsidy_in_millions <= 2.76,"LogAcres"], grp="<=median"))
View mutli merge.r
### r code to support: http://econometricsense.blogspot.com/2011/01/merging-multiple-data-frames-in-r.html
# read all Y2000 csv files
filenames <- list.files(path="/Users/wkuuser/Desktop/R Data Sets/TRADE_DATA/TempData00", full.names=TRUE)
import.list <- llply(filenames, read.csv)
# left join all Y2000 csv files
AllData00 <- Reduce(function(x, y) merge(x, y, all=FALSE,by.x="Reporting.Countries.Partner.Countries",by.y="Reporting.Countries.Partner.Countries",all.x =TRUE, all.y =FALSE),import.list,accumulate=F)
View r copula graphs.r
# *------------------------------------------------------------------
# | PROGRAM NAME: R_COPULA_BASIC
# | DATE: 1/25/11
# | CREATED BY: Matt Bogard
# | PROJECT FILE: http://econometricsense.blogspot.com/2011/03/copula-functions-r-and-financial-crisis.html
# *----------------------------------------------------------------
# | PURPOSE: copula graphics
# |
# *------------------------------------------------------------------
# | COMMENTS:
View indifference curves.r
# *------------------------------------------------------------------
# | PROGRAM NAME: INDIFFERENCE_CURVES_R
# | DATE: 3/11/11
# | CREATED BY: MATT BOGARD
# | PROJECT FILE: http://econometricsense.blogspot.com/2011/03/plotting-indifference-curves-with-r.html
# *----------------------------------------------------------------
# | PURPOSE: MORE TO PLOT LEVEL SETS USING THE CONTOUR FUNCTION THAN
# | TO ACTUALLY PLOT INDIFFERENCE CURVES
# *------------------------------------------------------------------
# | COMMENTS:
View roc demo.r
# R Code to support: http://econometricsense.blogspot.com/2011/05/intuitive-approach-to-roc-curves-with.html
# *------------------------------------------------------------------
# |
# | import scored logit data from SAS - code generated by SAS MACRO %EXPORT_TO_R
# |
# |
# *-----------------------------------------------------------------
View ex qtl.r
# ------------------------------------------------------------------
# |PROGRAM NAME: EX_QTL_R
# |DATE: 8-13-11
# |CREATED BY: MATT BOGARD
# |PROJECT FILE: http://econometricsense.blogspot.com/2011/08/qtl-analysis-in-r.html
# |----------------------------------------------------------------
# | PURPOSE: DEMONSTRATE STATISTICAL METHODS FOR QTL ANALYSIS IN R
# |
# |------------------------------------------------------------------
# | REFERENCE: R code for "A brief tour of R/qtl"
View bayesian econometrics.r
# ------------------------------------------------------------------
# | PROGRAM NAME: EX_BAYESIAN_ECONOMETRCS
# | DATE: 9-15-11
# | CREATED BY: MATT BOGARD
# | PROJECT FILE: http://econometricsense.blogspot.com/2011/09/elements-of-bayesian-econometrics.html
# |----------------------------------------------------------------
# | ADAPTED FROM: Andrew D. Martin. "Bayesian Inference and Computation in Political Science." Slides from a talk given to the Department of Politics, Nuffield College, Oxford University, March 9, # | 2004. SLIDES:http://adm.wustl.edu/media/talks/bayesslides.pdf R-CODE : http://adm.wustl.edu/media/talks/examples.zip
# |
# |
# |