h_mmrm_subgroup_df | R Documentation |

This is an internal helper to extract the correct LS mean estimates and contrast for a specific visit and treatment arm relative to the reference arm for one MMRM subgroup.

```
h_mmrm_subgroup_df(
lsmeans,
overall_fit,
is_in_subset,
visit,
treatment_arm,
subgroup,
var,
label
)
```

`lsmeans` |
(named |

`overall_fit` |
( |

`is_in_subset` |
( |

`visit` |
( |

`treatment_arm` |
( |

`subgroup` |
( |

`var` |
( |

`label` |
( |

List with `estimates`

(with 2 rows) and `contrasts`

(with 1 row) in the
format needed in `extract_mmrm_subgroups()`

.

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.