-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from tombisho/vcov2
Revert "undoing push to neelsoumya repo"
- Loading branch information
Showing
10 changed files
with
68 additions
and
1,255 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 |
---|---|---|
@@ -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 | ||
|
This file was deleted.
Oops, something went wrong.
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
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,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 |
This file was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.