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: power simulation multiple ordinal logistic.R | |
# | DATE: 2/3/24 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: R Training | |
# *---------------------------------------------------------------- | |
# | PURPOSE: power calculations and simulations | |
# *---------------------------------------------------------------- |
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: power simulation ordinal logistic.R | |
# | DATE: 2/3/24 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: R Training | |
# *---------------------------------------------------------------- | |
# | PURPOSE: power calculations and simulations | |
# *---------------------------------------------------------------- |
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: power simulation logistic.R | |
# | DATE: 2/3/24 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: R Training | |
# *---------------------------------------------------------------- | |
# | PURPOSE: power calculations and simulations | |
# *---------------------------------------------------------------- | |
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: calc CI widths | |
# | DATE: 10/16/21 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: prespectively determine expected CI width (margin of error) based on power calc | |
# *---------------------------------------------------------------- | |
# based on: Goodman SN, Berlin JA. The use of predicted confidence intervals when planning experiments and |
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 2x2 DID.r | |
# | DATE: | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: simple example of DID and parallel trends | |
# *---------------------------------------------------------------- | |
rm(list=ls()) # get rid of any existing data |
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: fun with CIs.r | |
# | DATE: 7/16/22 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: basic CI simulation | |
# *---------------------------------------------------------------- | |
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: CI and TypeMS Errors.r | |
# | DATE: 7/19/22 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: Explore the magnitude and sign of errors when we are underpowered | |
# *---------------------------------------------------------------- | |
rm(list=ls()) # get rid of any existing data |
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: CI Simulation | |
# | DATE: 7/16/22 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: How much confidence can we place in the range of values in a CI vs the point estimate | |
# *---------------------------------------------------------------- | |
rm(list=ls()) # get rid of any existing data |
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: ROI CI Simulation.r | |
# | DATE: 7/16/22 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: How much confidence can we place in the range of values in a CI vs the point estimate | |
# *---------------------------------------------------------------- | |
rm(list=ls()) # get rid of any existing data |
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: Power Analysis Binary.py | |
# | DATE: 09/30/21 | |
# | CREATED BY: MATT BOGARD | |
# | PROJECT FILE: | |
# *---------------------------------------------------------------- | |
# | PURPOSE: power calculation and sample size scenarios for binary outcomes | |
# *---------------------------------------------------------------- | |
import pandas as pd |
NewerOlder