powered by
Calculates the weighted average crude risk against the average exposure level for a continuous exposure. Each point corresponds to overlapping subgroups of 20 percent of the sample ordered from lowest to highest exposure and a sliding window of 1
crude.risk(formula, data, weights = NULL, na.action = na.omit)
y~x
formula
weights
crude.risk
data(aarp) risk <- crude.risk(bladder70~redmeat, weights = aarp$w, data = aarp) risk.exposure.plot(risk, xlab = "Avg. Red Meat Consumption")
Run the code above in your browser using DataLab