R likes it when these things have documentation.

update(object, ...) # S3 method for dpm update(object, formula., ..., evaluate = TRUE) # S4 method for dpm update(object, formula., ..., evaluate = TRUE) # S4 method for dpm show(object) coef(object, ...) # S3 method for dpm coef(object) # S4 method for dpm coef(object) # S4 method for dpm formula(x)

object | A |
---|---|

... | Other arguments to update. |

formula. | An updated formula (optional) |

evaluate | If updating, should the updated model be updated or just return the call? Default is TRUE, re-run the model. |

x | A |

data("WageData", package = "panelr") wages <- panel_data(WageData, id = id, wave = t) fit <- dpm(wks ~ pre(lag(union)) + lag(lwage), data = wages) # Re-run model without `lag(lwage)` term update(fit, . ~ . - lag(lwage))#> Error in "panel_data" %in% class(x): object 'wages' not found