Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ svycoxme Public

❗ This is a read-only mirror of the CRAN R package repository. svycoxme — Mixed-Effects Cox Models for Complex Samples. Homepage: https://github.com/bdrayton/svycoxme Report bugs for this package: https://github.com/bdrayton/svycoxme/issues

Notifications You must be signed in to change notification settings

cran/svycoxme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svycoxme

R-CMD-check

The goal of svycoxme is to fit mixed-effects proportional hazards models to data from complex samples. Most of the work is done by the coxme package. The svycoxme package provides wrappers to fit models using survey designs from the survey package, and provides variances estimation by Taylor series linearisation or replicate weights.

Installation

You can install svycoxme from CRAN with:

install.packages("svycoxme")

You can install the development version of svycoxme from GitHub with:

# install.packages("devtools")
devtools::install_github("bdrayton/svycoxme")

Example

This is a basic example using the samp_srcs dataset provided with the package.

library(survey)
library(svycoxme)
des <- svydesign(ids = ~group_id, weights = ~weight, data = samp_srcs)

fit1 <- svycoxme(Surv(stat_time, stat) ~ X1 + X2 + X3 + (1 | group_id), design = des)

summary(fit1)

About

❗ This is a read-only mirror of the CRAN R package repository. svycoxme — Mixed-Effects Cox Models for Complex Samples. Homepage: https://github.com/bdrayton/svycoxme Report bugs for this package: https://github.com/bdrayton/svycoxme/issues

Resources

Stars

Watchers

Forks

Packages

No packages published