Description Usage Arguments Details Value Examples
View source: R/agemix.episodes.df.maker.R
Produces a dataframe of relationship episodes from list created by readthedata
.
1 |
datalist |
The list object that is produced by |
The resulting dataframe is in a long format where each row/observation represents an episode from each relationship. Each relationship episode is represented twice: once for each man in the dataset who was the male partner in that relationship, and once for each woman who was the female partner in the relationship. This allows the user to conduct stratified analyses based on gender. For relationships where there is more than one episode, there will be multiple rows.
A dataframe, with the following additional columns generated:
Unique relationship identier. It combines the unique ID for the male parter in the relationship first, and the female partner second.
This indicates the order in which the episodes occured.
This indicates the age that the person was when the episode was formed.
The age of the person when when the relationship began. In other words, the age at the first episode.
This is the age of the partner when the relationship began.
1 2 3 4 | cfg <- list()
modeloutput <- RSimpactCyan::simpact.run(configParams = cfg, destDir = "temp")
dl <- readthedata(modeloutput)
agemix.df <- agemix.episodes.df.maker(datalist = dl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.