# NOT RUN {
# Load dataset with (g, Y, Xtilde, C) values for 248 pools and list of C
# values for members of each pool. Xtilde values are affected by processing
# error.
data(pdat2)
dat <- pdat2$dat
c.list <- pdat2$c.list
# Estimate log-OR for X and Y adjusted for C, ignoring processing error
fit1 <- p_dfa_xerrors2(
g = dat$g,
y = dat$y,
xtilde = dat$xtilde,
c = c.list,
errors = "neither"
)
fit1$estimates
# Repeat, but accounting for processing error.
# }
# NOT RUN {
fit2 <- p_dfa_xerrors2(
g = dat$g,
y = dat$y,
xtilde = dat$xtilde,
c = c.list,
errors = "processing",
control = list(trace = 1)
)
fit2$estimates
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab