Find the systematic component in the linear form for fitted values in across
each simulation (note: largely for internal use by `qi_builder`

)

1 | ```
linear_systematic(b_sims, newdata, inc_intercept = TRUE)
``` |

`b_sims` |
a data frame created by |

`newdata` |
a data frame of fitted values with column names corresponding
to variable names in |

`inc_intercept` |
logical whether to include the intercept in the lineary systematic component. |

A data frame fitted values supplied in `newdata`

and associated
linear systematic component estimates for all simulationed coefficient
estimates. The linear systematic components are included in a column
named `ls_`

.

King, Gary, Michael Tomz, and Jason Wittenberg. 2000. "Making the Most of Statistical Analyses: Improving Interpretation and Presentation." American Journal of Political Science 44(2): 341-55.

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
library(car)
# Estimate model
m1 <- lm(prestige ~ education + type, data = Prestige)
# Create fitted values
fitted_df <- expand.grid(education = 6:16, typewc = 1)
# Simulate coefficients
m1_sims <- b_sim(m1, nsim = 1000)
# Find linear systematic component for fitted values
ls <- linear_systematic(b_sims = m1_sims, newdata = fitted_df)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.