| NewBorn | R Documentation |
The NewBorn dataset is from a prospective study assessing the effect of respiratory physiotherapy on cardiopulmonary function in ventilated preterm newborn infants with birth weight less than 1500 g. The dataset was collected by the nursing team of Waldemar Monastier Hospital, Campo Largo, PR, Brazil, and analyzed in Bonat and Jorgensen (2016) as an example of mixed outcomes regression models.
data(NewBorn)
A data.frame with 270 observations and 21 variables:
SexFactor with levels Female and Male.
GAGestational age in weeks.
BWBirth weight in grams.
APGAR1MAPGAR index at the first minute of life.
APGAR5MAPGAR index at the fifth minute of life.
PREFactor indicating prematurity (YES/NO).
HDFactor indicating Hansen's disease (YES/NO).
SURFactor indicating surfactant administration (YES/NO).
JAUFactor indicating jaundice (YES/NO).
PNEFactor indicating pneumonia (YES/NO).
PDAFactor indicating persistence of ductus arteriosus (YES/NO).
PPIFactor indicating primary pulmonary infection (YES/NO).
OTHERSFactor indicating other diseases (YES/NO).
DAYSAge in days.
AUXFactor indicating type of respiratory auxiliary (HOOD/OTHERS).
RRRespiratory rate (continuous).
HRHeart rate (continuous).
SPO2Oxygen saturation (bounded).
TREATFactor with three levels: Respiratory physiotherapy, Evaluation 1, Evaluation 2, Evaluation 3.
NBINewborn index.
TIMEDays of treatment.
Bonat, W. H. and Jorgensen, B. (2016). "Multivariate covariance generalized linear models." Journal of Royal Statistical Society, Series C, 65:649–675.
library(mcglm)
library(Matrix)
data(NewBorn, package = "mcglm")
# Linear predictor example
formu <- SPO2 ~ Sex + APGAR1M + APGAR5M + PRE + HD + SUR
Z0 <- mc_id(NewBorn)
fit <- mcglm(
linear_pred = c(formu),
matrix_pred = list(Z0),
link = "logit",
variance = "binomialP",
power_fixed = TRUE,
data = NewBorn,
control_algorithm = list(verbose = FALSE, tuning = 0.5)
)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.