Description Usage Arguments Value
Computes the length, start, and end, of unemployment spells in a DREAM dataset. Unemployment is everything that is not employment. Employment is (by default) defined as 4 consecutive weeks without benefit and with an income the corresponding months.
1 2 |
data |
A |
row |
An integer valued row number (1 to |
period |
A character vector of DREAM weeks, e.g. |
other.exit |
An integer vector of DREAM benefit codes that identifies exit other than to employment. If |
other.censor |
An integer vector of DREAM benefit codes that identifies right censoring other than censoring of observations. If |
emp.weeks |
An integer that defines the number of consecutive weeks without benefit and with an income the corresponding months needed for employment. The default is |
A list with components:
lengths
: An integer vector containing the length of each run.
start
: A character vector of same length as lengths
with start weeks. NA
imply that the spell start prior to first week in period
.
end
: A character vector of same length as lengths
with end weeks. NA
imply that the spell end after last week in period
.
right.censored
: A logical vector (TRUE/FALSE
) of same length as lengths
which indicates whether the spell is right censored.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.