This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# *----------------------------------------------------------------- | |
# | PROGRAM NAME: RNA seq analysis.R | |
# | DATE: 12/27/19 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: /Users/amandabogard/Google Drive/R Training | |
# *---------------------------------------------------------------- | |
# | PURPOSE: dc code and analysis | |
# *---------------------------------------------------------------- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# *----------------------------------------------------------------- | |
# | PROGRAM NAME: Gamma Power Calculator 26Nov19.R | |
# | DATE: 11/20/19 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: compare conventional vs nGLM power calculations to estimate power and sample size for tests involving costs | |
# *---------------------------------------------------------------- | |
# based on: Cundill, Bonnie & Alexander, Neal. (2015). Sample size calculations for skewed distributions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# *----------------------------------------------------------------- | |
# | PROGRAM NAME: iptw demo.py | |
# | DATE: 11/27/19 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: inverse probablilty of treatment weighted regression (IPTW) | |
# *---------------------------------------------------------------- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------ | |
# |PROGRAM NAME: claims cost analysis demo.py | |
# |DATE: 11/13/19 | |
# |CREATED BY: MATT BOGARD | |
# |PROJECT FILE: | |
# |---------------------------------------------------------------- | |
# | PURPOSE: analysis of cost data using 2- part GLM model | |
# |---------------------------------------------------------------- | |
# TO DO: add bootstrapping |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# *----------------------------------------------------------------- | |
# | PROGRAM NAME: py code pallette.py | |
# | DATE: 7/17/20 (original: 12/28/18) | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: examples of data munging and analysis in python | |
# *---------------------------------------------------------------- | |
# see also: https://pandas.pydata.org/pandas-docs/stable/getting_started/comparison/comparison_with_r.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# *----------------------------------------------------------------- | |
# | PROGRAM NAME: R Code Pallete | |
# | DATE: 3/11/20 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: | |
# *---------------------------------------------------------------- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------ | |
# |PROGRAM NAME:gamma model demo.py | |
# |DATE: 11/13/19 | |
# |CREATED BY: MATT BOGARD | |
# |PROJECT FILE: | |
# |---------------------------------------------------------------- | |
# | PURPOSE: example analysis of cost data using GLM gamma model with log link | |
# |---------------------------------------------------------------- | |
# TO DO: add bootstrapping |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# *----------------------------------------------------------------- | |
# | PROGRAM NAME: basic boot.R | |
# | DATE: 11/9/19 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: demo R boot package and home grown bootsrapping for differences in means and difference-in-differences | |
# *---------------------------------------------------------------- | |
#--------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# *----------------------------------------------------------------- | |
# | PROGRAM NAME: randomization inference demo.R | |
# | DATE: 10/14/19 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: demo of randomization inference based on 'Field Experimetns: Design, Analysis, and Interpretation | |
# | by Alan S. Gerber and Donald P. Green (Ch3) | |
# *---------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################## | |
########################################################## | |
######### under construction ############# | |
########################################################## | |
########################################################## | |
# see: http://econometricsense.blogspot.com/2019/01/modeling-claims-with-linear-vs-non.html?_sm_au_=iVV3RHk1r75TjsfM | |
# this is also the approach taken in Jonk: Yvonne Jonk, Karen Lawson, Heidi O'Connor, Kirsten S. Riise, David | |
# Eisenberg, Bryan Dowd, Mary J. KreitzerMed Care. 2015 Feb; 53(2): 133–140. doi: 10.1097/MLR.0000000000000287 |