Description Usage Arguments Details Value Author(s) Examples

Compute population marginal means (PMM) from a model fit, for a chosen population and statistic.

1 2 3 |

`fit` |
a model fit. Examples using lm, glm, and coxph objects are given in the vignette. |

`term` |
the term from the model whic is to be evaluated. This can be written as a character string or as a formula. |

`population` |
the population to be used for the adjusting variables. User can supply their own data frame or select one of the built in choices. The argument also allows "empirical" and "yates" as aliases for data and factorial, respectively, and ignores case. |

`levels` |
optional, what values for |

`test` |
the test for comparing the population predictions. |

`predict` |
what to predict. For a glm model this might be the 'link' or 'response'. For a coxph model it can be linear, risk, or survival. User written functions are allowed. |

`options` |
optional arguments for the prediction method. |

`nsim` |
number of simulations used to compute a variance for the predictions. This is not needed for the linear predictor. |

`method` |
the computational approach for testing equality of the population predictions. Either the direct approach or the algorithm used by the SAS glim procedure for "type 3" tests. |

The many options and details of this function are best described in a vignette on population prediction.

an object of class `yates`

with components of

`estimate` |
a data frame with one row for each level of the term, and columns containing the level, the mean population predicted value (mppv) and its standard deviation. |

`tests` |
a matrix giving the test statistics |

`mvar` |
the full variance-covariance matrix of the mppv values |

`summary` |
optional: any further summary if the values provided by the prediction method. |

Terry Therneau

1 2 3 4 5 |

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.