-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a72f580
Showing
108 changed files
with
12,975 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TODO | ||
\.Rhistory | ||
\.Rprofile |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TODO | ||
\.Rhistory |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
library(Survival) | ||
library(survival) | ||
?Surv | ||
Surv(1:10, 2:11, c(0,0,0,0,rep(1,6))) | ||
str(Surv(1:10, 2:11, c(0,0,0,0,rep(1,6)))) | ||
29 * 0.69 | ||
29 * 0.64 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TODO | ||
\.Rhistory |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-*- text -*- | ||
|
||
See "inst/NEWS" in source package, or "NEWS" in binary package, for changes |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-*- text -*- | ||
|
||
See "inst/NEWS" for changes |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Package: flexsurv | ||
Type: Package | ||
Title: Flexible parametric survival models | ||
Version: 0.4 | ||
Date: 2014-07-15 | ||
Author: Christopher Jackson <chris.jackson@mrc-bsu.cam.ac.uk> | ||
Maintainer: Christopher Jackson <chris.jackson@mrc-bsu.cam.ac.uk> | ||
Description: Flexible parametric models for time-to-event data, including the Royston-Parmar spline model, generalized gamma and generalized F distributions. Easily extensible to fit user-defined parametric distributions. | ||
License: GPL (>= 2) | ||
Depends: survival | ||
Imports: muhaz,mvtnorm | ||
Suggests: eha,mstate,numDeriv,testthat,msm | ||
LazyLoad: yes | ||
LazyData: yes |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Package: flexsurv | ||
Type: Package | ||
Title: Flexible parametric survival models | ||
Version: 0.4 | ||
Date: 2014-07-15 | ||
Author: Christopher Jackson <chris.jackson@mrc-bsu.cam.ac.uk> | ||
Maintainer: Christopher Jackson <chris.jackson@mrc-bsu.cam.ac.uk> | ||
Description: Flexible parametric models for time-to-event data, including the Royston-Parmar spline model, generalized gamma and generalized F distributions. Easily extensible to fit user-defined parametric distributions. | ||
License: GPL (>= 2) | ||
Depends: survival | ||
Imports: muhaz,mvtnorm | ||
Enhances: mstate | ||
Suggests: eha,mstate,numDeriv,testthat,msm | ||
LazyLoad: yes | ||
LazyData: yes |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
export( | ||
dgenf, | ||
dgenf.orig, | ||
dgengamma, | ||
dgengamma.orig, | ||
dgompertz, | ||
dsurvspline, | ||
flexsurvreg, | ||
flexsurvspline, | ||
hexp, | ||
Hexp, | ||
hgamma, | ||
Hgamma, | ||
hgenf, | ||
Hgenf, | ||
hgenf.orig, | ||
Hgenf.orig, | ||
hgengamma, | ||
Hgengamma, | ||
hgengamma.orig, | ||
Hgengamma.orig, | ||
hgompertz, | ||
Hgompertz, | ||
hlnorm, | ||
Hlnorm, | ||
hsurvspline, | ||
Hsurvspline, | ||
hweibull, | ||
Hweibull, | ||
lines.flexsurvreg, | ||
msfit.flexsurvreg, | ||
normboot.flexsurvreg, | ||
pgenf, | ||
pgenf.orig, | ||
pgengamma, | ||
pgengamma.orig, | ||
pgompertz, | ||
psurvspline, | ||
plot.flexsurvreg, | ||
qgeneric, | ||
qgenf, | ||
qgenf.orig, | ||
qgengamma, | ||
qgengamma.orig, | ||
qgompertz, | ||
qsurvspline, | ||
rgenf, | ||
rgenf.orig, | ||
rgengamma, | ||
rgengamma.orig, | ||
rgompertz, | ||
summary.flexsurvreg, | ||
unroll.function | ||
) | ||
|
||
importFrom(graphics, plot) | ||
importFrom(survival, Surv) | ||
importFrom(survival, survfit) | ||
importFrom(muhaz, muhaz) | ||
importFrom(mvtnorm, rmvnorm) | ||
|
||
S3method(print, flexsurvreg) | ||
S3method(plot, flexsurvreg) | ||
S3method(lines, flexsurvreg) | ||
S3method(summary, flexsurvreg) | ||
S3method(vcov, flexsurvreg) | ||
S3method(logLik, flexsurvreg) | ||
S3method(model.frame, flexsurvreg) | ||
S3method(model.matrix, flexsurvreg) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
export( | ||
dgenf, | ||
dgenf.orig, | ||
dgengamma, | ||
dgengamma.orig, | ||
dgompertz, | ||
dsurvspline, | ||
flexsurvreg, | ||
flexsurvspline, | ||
hexp, | ||
Hexp, | ||
hgamma, | ||
Hgamma, | ||
hgenf, | ||
Hgenf, | ||
hgenf.orig, | ||
Hgenf.orig, | ||
hgengamma, | ||
Hgengamma, | ||
hgengamma.orig, | ||
Hgengamma.orig, | ||
hgompertz, | ||
Hgompertz, | ||
hlnorm, | ||
Hlnorm, | ||
hsurvspline, | ||
Hsurvspline, | ||
hweibull, | ||
Hweibull, | ||
lines.flexsurvreg, | ||
msfit, | ||
normboot.flexsurvreg, | ||
pgenf, | ||
pgenf.orig, | ||
pgengamma, | ||
pgengamma.orig, | ||
pgompertz, | ||
psurvspline, | ||
plot.flexsurvreg, | ||
qgeneric, | ||
qgenf, | ||
qgenf.orig, | ||
qgengamma, | ||
qgengamma.orig, | ||
qgompertz, | ||
qsurvspline, | ||
rgenf, | ||
rgenf.orig, | ||
rgengamma, | ||
rgengamma.orig, | ||
rgompertz, | ||
summary.flexsurvreg, | ||
unroll.function | ||
) | ||
|
||
importFrom(graphics, plot) | ||
importFrom(survival, Surv) | ||
importFrom(survival, survfit) | ||
importFrom(muhaz, muhaz) | ||
importFrom(mvtnorm, rmvnorm) | ||
|
||
S3method(print, flexsurvreg) | ||
S3method(plot, flexsurvreg) | ||
S3method(lines, flexsurvreg) | ||
S3method(summary, flexsurvreg) | ||
S3method(vcov, flexsurvreg) | ||
S3method(logLik, flexsurvreg) | ||
S3method(model.frame, flexsurvreg) | ||
S3method(model.matrix, flexsurvreg) | ||
S3method(msfit, default) | ||
S3method(msfit, flexsurvreg) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
psi | ||
psigamma | ||
?psigamma | ||
?with | ||
hexp(1, 2) | ||
?with | ||
is.vector(matrix(1:4,nrow=2)) | ||
is.matrix(matrix(1:4,nrow=2)) | ||
setwd("../../tests") | ||
summary(sp, X=rep(0,5)) | ||
summary(sp, X=rep(0,4)) | ||
summary(sp, X=rep(0,4)) | ||
debug(summary.flexsurvreg) | ||
summary(sp, X=rep(0,4)) | ||
X | ||
Q | ||
summary.fl | ||
summary.flexsurvreg | ||
summary(sp, X=rep(0,4)) | ||
summary(sp, X=rep(0,5)) | ||
summary(sp, X=matrix(rep(0,5),nrow=1)) | ||
summary(sp, X=matrix(rep(0,5),nrow=2)) | ||
summary(sp, X=matrix(rep(0,10),nrow=2)) | ||
identical(1:2, 1:4) | ||
identical(1:4, 1:4) | ||
?rm | ||
ls() | ||
x <- 1 | ||
x2 <- 2 | ||
y <- 3 | ||
x34 <- 4 | ||
ls("x*") | ||
ls | ||
ls() | ||
?ls | ||
ls(pattern="x.*") | ||
ls(pattern="a.*") | ||
ls(pattern="g.*") | ||
rm(list=ls(pattern="g.*")) | ||
rm(list=ls("foo")) | ||
?ls | ||
ls(pattern="^x34$") | ||
ls(pattern="$x34^") | ||
x <- NULL | ||
is.function(x$d) | ||
exists(x$d) | ||
y | ||
foo() | ||
y | ||
x <- list(1:3,1:2,1:4) | ||
Reduce("+", x) | ||
?Reduce | ||
cumsum(sapply(x,length)) | ||
terms(form) | ||
?tersm | ||
?terms | ||
?terms.object | ||
grep(pattern, attr(terms(formula), "term.labels")) | ||
grep(pattern, attr(terms(form), "term.labels")) | ||
?gsub | ||
rm(list=ls()) | ||
labs | ||
f2 | ||
labs | ||
labs | ||
any(labs) | ||
I | ||
shape | ||
scale |
Oops, something went wrong.