make_one_linear_pred {SimTimeVar} | R Documentation |
Generate linear predictor from logistic model
Description
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.
Usage
make_one_linear_pred(m, data)
Arguments
m |
Part of the parameter matrix for the linear predictor for a single variable. |
data |
The dataframe from which to generate. |
Examples
# 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)
[Package SimTimeVar version 1.0.0 Index]