Offset terms

USAGE:

offset(formula) 

This is support for the function formula(), and can be used to fix coefficients. This function is used only on the right side of a formula, to specify a term (or terms) in the model for which coefficients should be fixed. The formula argument is any number of terms in the formula language, separated by +. The function should not be used outside of a formula.

SEE ALSO:

, .

EXAMPLES:

# Fix the coefficient of Age to be 0.01.
glm(Kyphosis ~ offset(0.01 * Age) + Start, family = binomial,
data = kyphosis)
# Fix the coefficient of Age to be 0.01 and the intercept to be 0.25.
glm(Kyphosis ~ offset(0.25 + 0.01 * Age) + Start - 1, family = binomial,
data = kyphosis)
# Fix the coefficient of voltage to be -0.5.
censorReg(censor(days,event) ~ offset(-0.5 * voltage), weights = weights,
data = capacitor2)