# NOT RUN {
## 2 party linear regression
# Analysis Center -- To be run in one instance of R.
# The working directory should be the same as specified in the PopMedNet
# requset for the analysis center.
fit = AnalysisCenter.2Party(regression = "linear", data = vdra_data[, c(1, 5:7)],
response = "Change_BMI", monitorFolder = tempdir())
# Data Partner -- To be run in second instand of R, on perhaps a different machine.
# The working directory should be the same as specified in the PopMedNet
# request for the data partner.
fit = DataPartner.2Party(regression = "linear", data = vdra_data[, 8:11],
monitorFolder = tempdir())
## 2 party logistic regression
# Analysis Center -- To be run in one instance of R.
# The working directory should be the same as specified in the PopMedNet
# requset for the analysis center.
fit = AnalysisCenter.2Party(regression = "logistic", data = vdra_data[, c(2, 5:7)],
response = "WtLost", monitorFolder = tempdir())
# Data Partner -- To be run in second instand of R, on perhaps a different machine.
# The working directory should be the same as specified in the PopMedNet
# request for the data partner.
fit = DataPartner.2Party(regression = "logistic", data = vdra_data[, 8:11],
monitorFolder = tempdir())
## 2 party cox regression
# Analysis Center -- To be run in one instance of R.
# The working directory should be the same as specified in the PopMedNet
# requset for the analysis center.
fit = AnalysisCenter.2Party(regression = "cox", data = vdra_data[, c(3:4, 5:7)],
response = c("Time", "Status"), strata = c("Exposure", "Sex"),
monitorFolder = tempdir())
# Data Partner -- To be run in second instand of R, on perhaps a different machine.
# The working directory should be the same as specified in the PopMedNet
# request for the data partner.
fit = DataPartner.2Party(regression = "cox", data = vdra_data[, 8:11],
strata = c("Exposure", "Sex"), monitorFolder = tempdir())
# }
Run the code above in your browser using DataLab