# mrspprep

The `mrsprep`

command restructures survival data and calculates weighted mean expected mortality rates and time-dependent weights so that a marginal relative survival can be directly estimated. After running `mrsprep`

estimation commands that fit (conditional) relative survival models (e.g. `stpm2`

or `strcs`

) can be used to estimate marginal relative survival without out the need to include covariates that affect expected survival.

You can install `mrsprep`

within Stata using

```
. ssc install mrsprep
```

## Using `mrsprep`

- Estimating marginal relative survival using
`mrsprep`

and`stpm2`

. - External age standardization.
- Modelling covariates.