Description Usage Arguments Examples
An internal function not intended for the user. Given a matrix of regression parameters and a dataset, returns the linear predictor based on the given dataset.
1 |
m |
Part of the parameter matrix for the linear predictor for a single variable. |
data |
The dataframe from which to generate. |
1 2 3 4 5 | # take part of parameters matrix corresponding to single level of categorical
# variable
m = cat.params[ cat.params$level == "black", ]
data = data.frame( male = rbinom(n=10, size=1, prob=0.5) )
make_one_linear_pred(m, data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.