Description Usage Arguments Value Examples
Need to use a person ID that has first person in dyad numbered 1-n and second person in dyad = ID + some number larger than the number of dyads. Need dyad ID numbered same as for person ID for the first person in the dyad. Both members in each dyad need to have the same number of rows (rows of missing data are ok)
1 | actorPartnerDataCross(basedata, dyadId, personId)
|
basedata |
A dataframe with cross-sectional dyadic data. |
dyadId |
The name of variable indicating dyad ID. |
personId |
The name of the variable indicating peron ID. |
A dataframe in actor-partner format.
1 2 3 4 | data <- rties_ExampleDataShort
newData1 <- data[data$time==1, ] # make a cross-sectional dataframe
newData2 <- actorPartnerDataCross(basedata=newData1, dyadId="couple", personId="couple")
head(newData2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.