Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@BioSciEconomist
BioSciEconomist / example copula quantmod.r
Last active October 31, 2016 01:15
Modeling Dependence with Copulas and Quantmod in R
# ------------------------------------------------------------------
# |PROGRAM NAME: copual and quantmod ex
# |DATE: 10/30/16
# |CREATED BY: MATT BOGARD
# |PROJECT FILE:
# |----------------------------------------------------------------
# | PURPOSE: R code supporting: http://econometricsense.blogspot.com/2016/10/modeling-dependence-with-copulas-and.html
# |
# | REFERENCE: Modelling Dependence with Copulas in R
# | http://datascienceplus.com/modelling-dependence-with-copulas/
# ------------------------------------------------------------------
# |PROGRAM NAME: copual and quantmod ex
# |DATE: 10/30/16
# |CREATED BY: MATT BOGARD
# |PROJECT FILE:
# |----------------------------------------------------------------
# | PURPOSE:
# |
# | REFERENCE: Modelling Dependence with Copulas in R
# | http://datascienceplus.com/modelling-dependence-with-copulas/
@BioSciEconomist
BioSciEconomist / MEFF and Odds Ratios.r
Created October 31, 2016 01:22
Marginal Effects, Odds Ratios, and Divide by 4
# r code to support post: http://econometricsense.blogspot.com/2016/05/divide-by-4-rule-for-marginal-effects.html
#------------------------------------------------------------------
# PROGRAM NAME: MEFF and Odds Ratios
# DATE: 3/3/16
# CREATED BY: MATT BOGARD
# PROJECT FILE:
#------------------------------------------------------------------
# PURPOSE: GENERATE MARGINAL EFFECTS FOR LOGISTIC REGRESSION AND COMPARE TO:
# ODDS RATIOS / RESULTS FROM R
@BioSciEconomist
BioSciEconomist / r_instrumental_var.r
Created October 31, 2016 01:25
A Toy Instrumental Variable Application
# r code to support post: http://econometricsense.blogspot.com/2013/06/an-toy-instrumental-variable-application.html
# ------------------------------------------------------------------
# | PROGRAM NAME: R_INSTRUMENTAL_VAR
# | DATE:6/17/13
# | CREATED BY: MATT BOGARD
# | PROJECT FILE: P:\BLOG\STATISTICS
# |----------------------------------------------------------------
# | PURPOSE: BASIC EXAMPLE OF IV
# |
@BioSciEconomist
BioSciEconomist / EV Centrality v3.r
Created October 31, 2016 01:28
Intuition Behind Eigenvector Centrality
# r code to support post: http://econometricsense.blogspot.com/2012/11/update-more-intuition-behind.html
# *------------------------------------------------------------------
# | PROGRAM NAME: EV Centrality v3
# | DATE: 11/9/12
# | CREATED BY: MATT BOGARD
# | PROJECT FILE: P:\R Code References\SNA
# *----------------------------------------------------------------
# | PURPOSE: An update to my companion code to Justification and Application of
# | Eigenvector Centrality by Leo Spizzirri
@BioSciEconomist
BioSciEconomist / R nmf example.r
Created October 31, 2016 01:35
Nonnegative Matrix Factorization and Recommendor Systems
# r code to support post:http://econometricsense.blogspot.com/2012/10/nonnegative-matrix-factorization-and.html
# ------------------------------------------------------------------
# | PROGRAM NAME: R nmf example
# | DATE: 10/20/12
# | CREATED BY: MATT BOGARD
# | PROJECT FILE: /Users/wkuuser/Desktop/Briefcase/R Programs
# |----------------------------------------------------------------
# | PURPOSE: very basic example of a recommendor system based on
# | non-negative matrix factorization
@BioSciEconomist
BioSciEconomist / R_BASIC_SNA.r
Created October 31, 2016 16:37
Using SNA in Predictive Modeling
# *------------------------------------------------------------------
# | PROGRAM NAME: R_BASIC_SNA
# | DATE: 4/9/12
# | CREATED BY: MATT BOGARD
# | PROJECT FILE: P:\R Code References\SNA
# *----------------------------------------------------------------
# | PURPOSE: DEMONSTRATION OF BASIC CONCEPTS OF NETWORK ANALYSIS
# | Code to support: http://econometricsense.blogspot.com/2012/04/using-sna-in-predictive-modeling.html
# |
# | REFERENCES: Conway, Drew. Social Network Analysis in R.
@BioSciEconomist
BioSciEconomist / SNA ex.r
Created October 31, 2016 16:43
An Introduction to Social Network Analysis
# *------------------------------------------------------------------
# | PROGRAM NAME: SNA ex
# | DATE: 4/9/12
# | CREATED BY: MATT BOGARD
# | PROJECT FILE: P:\R Code References\SNA
# *----------------------------------------------------------------
# | PURPOSE: DEMONSTRATION OF BASIC CONCEPTS OF NETWORK ANALYSIS
# | Code to support: http://econometricsense.blogspot.com/2012/04/introduction-to-social-network-analysis.html
# | REFERENCES: Conway, Drew. Social Network Analysis in R.
# | New York City R User Group Meetup Presentation August 6, 2009
@BioSciEconomist
BioSciEconomist / r tree basic.r
Created November 1, 2016 11:23
Decision Tree Basics
# *------------------------------------------------------------------
# | PROGRAM NAME: R_tree_basic
# | DATE:4/26/11
# | CREATED BY: Matt Bogard
# | PROJECT FILE:P:\R Code References\Data Mining_R
# *----------------------------------------------------------------
# | PURPOSE: demo of basic decision tree mechanics
# | To support post: http://econometricsense.blogspot.com/2012/01/decision-tree-basics-in-sas-and-r.html
# *------------------------------------------------------------------
@BioSciEconomist
BioSciEconomist / gradient descent ols.r
Created November 1, 2016 11:26
Regression via Gradients Descent in R
# ----------------------------------------------------------------------------------
# |PROGRAM NAME: gradient_descent_OLS_R
# |DATE: 11/27/11
# |CREATED BY: MATT BOGARD
# |PROJECT FILE:
# |----------------------------------------------------------------------------------
# | PURPOSE: illustration of gradient descent algorithm applied to OLS
# | To support: http://econometricsense.blogspot.com/2011/11/regression-via-gradient-descent-in-r.html
# | REFERENCE: adapted from : http://www.cs.colostate.edu/~anderson/cs545/Lectures/week6day2/week6day2.pdf
# | and http://www.statalgo.com/2011/10/17/stanford-ml-1-2-gradient-descent/