Skip to content

Commit

Permalink
Revert "undoing push to neelsoumya repo"
Browse files Browse the repository at this point in the history
This reverts commit 3edbb30.

actual goes back to the merge I wanted
  • Loading branch information
Tom Bishop committed Jul 19, 2022
1 parent 3edbb30 commit 416fd46
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 1,255 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dsSurvival
Title: dsSurvival: Privacy preserving survival models for federated individual patient meta-analysis in DataSHIELD
Description: DataSHIELD server side base functions for building survival models.
Version: 2.0.0
Version: 2.1.0
Author: Soumya Banerjee, Demetris Avraam, Xavier Escriba Montagut, Juan Gonzalez, Paul Burton and Tom R P Bishop <[email protected]>
Maintainer: Soumya Banerjee, Demetris Avraam, Xavier Escriba Montagut, Juan Gonzalez, Paul Burton and Tom R P Bishop <[email protected]>
License: GPL-3
Expand Down
674 changes: 0 additions & 674 deletions LICENSE.md

This file was deleted.

1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export(listDisclosureSettingsDS)
export(plotsurvfitDS)
export(summarySurvDS)
export(survfitDS)
export(vcovDS.coxph)
36 changes: 36 additions & 0 deletions R/vcovDS.coxph.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#'
#' @title Returns variance-covariance matrix of Cox Proportional Hazard model.
#' @description returns a variance-covariance matrix of Cox Proportional Hazard model from the server side environment.
#' @details Serverside aggregate function {vcovDS.coxph} called by clientside function
#' {ds.vcov.coxph}.
#' returns a list which contains a variance-covariance matrix for a Cox model.
#' This request is not disclosive, because the disclosure checks should be performed in the main function for building
#' the Cox model (e.g. checking for over saturation).
#' For further details see help for the native {vcov} function.
#' @param object name of server-side coxph object.
#' @return a variance-covariance matrix.
#' @author Soumya Banerjee and Tom Bishop (2022).
#' @export
vcovDS.coxph<-function(object=NULL)
{

if (is.null(object))
{
stop("Please provide the name of a survival::coxph object", call.=FALSE)
}

surv_obj<-eval(parse(text=object), envir = parent.frame())

if (class(surv_obj)!="coxph")
{
stop("Object is not of class survival::coxph, please check the name", call.=FALSE)
}

vcov_res <- stats::vcov(surv_obj)

return(vcov_res)


}
#AGGREGATE FUNCTION
# vcovDS.coxph
45 changes: 0 additions & 45 deletions build_man_test.R

This file was deleted.

13 changes: 2 additions & 11 deletions inst/DATASHIELD
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ AggregateMethods:
coxphSummaryDS,
cox.zphSLMADS,
summarySurvDS,
plotsurvfitDS
plotsurvfitDS,
vcovDS.coxph
AssignMethods:
coxphSLMAassignDS,
SurvDS,
survfitDS
Options:
datashield.privacyLevel=5,
default.nfilter.glm=0.33,
default.nfilter.kNN=3,
default.nfilter.string=80,
default.nfilter.subset=3,
default.nfilter.stringShort=20,
default.nfilter.tab=3,
default.nfilter.noise=0.25,
default.nfilter.levels=0.33
28 changes: 28 additions & 0 deletions man/vcovDS.coxph.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed screenshot_survival_models.png
Binary file not shown.
Binary file removed vignettes/development_plan.pdf
Binary file not shown.
Loading

0 comments on commit 416fd46

Please sign in to comment.