Download Latest Version TrApWithDependencies.jar (5.1 MB)
Email in envelope

Get an email when there's a new version of klugerlab

Home / pcalc
Name Modified Size InfoDownloads / Week
Parent folder
readme.txt 2012-11-13 825 Bytes
PCalc_Rsq_LHR.r 2012-11-13 2.0 kB
Totals: 2 Items   2.8 kB 0
# PCalc_Rsq_LHR 
#
# by Fabio Parisi
# email: fabio.parisi@yale.edu
#
# This code is provided under a "Attribution-ShareAlike 3.0 Unported" license 
#   http://creativecommons.org/licenses/by-sa/3.0/
#
# REFERENCE:
# "Sample-Size Calculations for the Cox Proportional Hazards Regression Model 
#   with Nonbinary Covariates"
# Hsieh F.Y. and Lavori P.W. - Controlled Clinical Trials 21:552-560 (2000)
#
#
# USAGE:
#
# load the function by running the present script and
# call the function when needed as follows:
#
#  PCalc_Rsq_LHR(N,OR,alpha,fCEN,LHlim,PCUTS)
#
#        N: sample size
#       OR: frequency of occurrence
#    alpha: significance level
#     fCEN: fraction of censored data
#    LHlim: range of the log-hazard ratios
#    PCUTS: levels for the power isoclines  
#
#
#
#  Example: PCalc_Rsq_LHR(720,0.8)
#

Source: readme.txt, updated 2012-11-13