Description Usage Format Details Source References Examples
A study of 47 patients with similar profiles. Measurements on cd4 and cd8 levels are displayed for each panel of patients having identical predictor profiles. Both cd4 and cd8 have three levels. The data should be modeled as a grouped logistic model, but may also be modeled as a count model depending on what a research wishes to determine from the data.
1 |
A data frame with 11 observations of grouped data with 4 variables.
infec
1=Patient diagnosed with HIV; 0=not diagnosed with HIV
cases
number of patients for each patient profile
cd4
3 levels: 0, 1, and 2
cd8
3 levels: 0, 1, and 2
hiv is saved as a data frame.
Hilbe, Practical Guide to Logistic Regression, Chapman & Hall/CRC.
Hilbe, Joseph M (2015), Practical Guide to Logistic Regression, Chapman & Hall/CRC.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Not run
#data(hiv)
#table(hiv); hiv
#noinfec <- hiv$cases - hiv$infec
#myhiv<- glm(cbind(infec, noinfec) ~ factor(cd4) + factor#(cd8), family=binomial, data=hiv)
#summary(myhiv)
#mymodq <- glm( cbind(infec, noinfec) ~ factor(cd4) + factor(cd8), family=quasibinomial, data=hiv)
#summary(mymodq)
#toOR(myhiv)
#End(Not run)
library(LOGIT)
data(hiv)
table(hiv); hiv
noinfec <- hiv$cases - hiv$infec
response <- cbind(hiv$infec, noinfec)
myhiv<- glm(response ~ factor(cd4) + factor(cd8), family=binomial, data=hiv)
summary(myhiv)
mymodq <- glm(response ~ factor(cd4) + factor(cd8), family=quasibinomial, data=hiv)
summary(mymodq)
#library(sandwich)
#sqrt(diag(vcovHC(myhiv, type="HC0")))
toOR(myhiv)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.