'kw ns'>::</span><span class='fu'><a href='https://dplyr.tidyverse.org/reference/mutate.html'>mutate</a></span>(<span class='kw'>earnings_med</span> <span class='kw'>=</span> <span class='fu'>panel_locf</span>(<span class='no'>earnings_med</span>,
    <span class='kw'>.fill</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='fl'>NA</span>, <span class='fl'>0</span>),
    <span class='kw'>.i</span> <span class='kw'>=</span> <span class='no'>unit