AvgMargin | R Documentation |
AvgMargin
computes average predicted values based on the given data at specified level of voi
AvgMargin(data, model, voi, range = c(0:10))
data |
A dateframe with voi |
model |
lm or glm model |
voi |
Variable of interest to be calculated. |
range |
The value of voi to be predicted. For factor, use levels(data$voi) or specify factor levels |
dataframe of average predicted value at sepecified levels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.