The dsldLinear
function fits a linear model to the response
variable Y using all other variables in data
. The user may
select for interactions with the sensitive variable S.
The function produces an instance of the `dsldLM` class (an S3
object). Instances of the generic functions summary
and
coef
are provided.
If interactions
is TRUE, the function will fit m separate
models, where m is the number of levels of S. Then summary
will contain m+1 data frames; the first m of which will be the
outputs from the individual models.
The m+1st data frame will compare the differences
in conditional mean Y|X for each pair of S levels, and for each
value of X in sComparisonPts
.
The intention is to allow users to see the comparisons
of conditions for sensitive groups via linear models, with
interactions with S.
The dsldDiffS
function allows users to compare mean Y at that
X between each pair of S level for additional new unseen data levels
using the model fitted from dsldLinear
.