Description Usage Arguments Details Value Examples

This function allows you to define a minimum number of waves/periods and exclude all individuals with fewer observations than that.

1 |

`data` |
A |

`...` |
Optionally, unquoted variable names/expressions separated by
commas to be passed to |

`formula` |
A formula, like the one you'll be using to specify your model. |

`vars` |
As an alternative to formula, a vector of variable names. |

`min.waves` |
What is the minimum number of observations to be kept?
Default is |

If `...`

(that is, unquoted variable name(s)) are included, then `formula`

and `vars`

are ignored. Likewise, `formula`

takes precedence over `vars`

.
These are just different methods for selecting variables and you can choose
whichever you prefer/are comfortable with. `...`

corresponds with the
"tidyverse" way, `formula`

is useful for programming or working with
model formulas, and `vars`

is a "standard" evaluation method for when you
are working with strings.

A `panel_data`

frame.

1 2 3 | ```
data("WageData")
wages <- panel_data(WageData, id = id, wave = t)
complete_data(wages, wks, lwage, min.waves = 3)
``` |

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.