mcwr_exit {mcwr} | R Documentation |
Examine last (exit) row of data set
Description
mcwr_exit()
allows easy editing and consistency checks of the last (exit) row of an mcwr data frame.
Usage
mcwr_exit(data, age, replace = FALSE, update = FALSE, rewards = 0)
Arguments
data |
an mcwr data.frame |
age |
a real number ageval.
It specifies the age of the exit row in the data frame. It may or may not exist.
It may not be smaller than the largest age in the data frame. |
replace |
boolean TRUE/FALSE. See option |
update |
boolean TRUE/FALSE. See option |
rewards |
a real number rwval. It determines the rewards value for exit transitions. |
Details
mcwr requires that all data points that do not enter matrix calculations be set to missing in order to avoid
incorrectly set up data. This rule makes the last (exit) row of the mcwr data frame somewhat tedious to manage.
The convenience function mcwr_exit()
makes it easier to create or edit the last (exit) row of the data set.
Value
A data.frame, suitable for further processing by mcwr_*()
functions.
See Also
Other mcwr:
mcwr_check()
,
mcwr_expectancies()
,
mcwr_genvars()
,
mcwr_switch()