Skip to content

Commit

Permalink
Test flexsurv commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chjackson committed Jul 29, 2014
0 parents commit a72f580
Show file tree
Hide file tree
Showing 108 changed files with 12,975 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TODO
\.Rhistory
\.Rprofile
2 changes: 2 additions & 0 deletions .Rbuildignore~
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TODO
\.Rhistory
7 changes: 7 additions & 0 deletions .Rhistory
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
2 changes: 2 additions & 0 deletions .Rinstignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TODO
\.Rhistory
3 changes: 3 additions & 0 deletions Changelog
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
3 changes: 3 additions & 0 deletions Changelog~
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-*- text -*-

See "inst/NEWS" for changes
14 changes: 14 additions & 0 deletions DESCRIPTION
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
15 changes: 15 additions & 0 deletions DESCRIPTION~
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
69 changes: 69 additions & 0 deletions NAMESPACE
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)
71 changes: 71 additions & 0 deletions NAMESPACE~
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)
69 changes: 69 additions & 0 deletions R/.Rhistory
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
Loading

0 comments on commit a72f580

Please sign in to comment.