Description Usage Arguments Value Examples
Create a distinguishing variable (called "dist") for non-distinguishable dyads by assigning the partner who is lower on a chosen variable a 0 and the partner who is higher on the variable a 1.
1 | makeDist(basedata, dyadId, personId, time_name, dist_name)
|
basedata |
A user-provided dataframe. |
dyadId |
The name of the column in the dataframe that has the couple-level identifier. |
personId |
The name of the column in the dataframe that has the person-level identifier. |
time_name |
The name of the column in the dataframe that indicates sequential temporal observations. |
dist_name |
The name of the column in the dataframe that holds the variable to use for distinguishing the partners. For example, if "influence" was the variable, for each dyad the partner scoring lower on "influence" would be given a score of 0 on "dist" and the partner scoring higher on "influence" would be given a score of 1 on "dist" |
The function returns the original dataframe with an additional variable, called "dist" that distinguishes between partners based on the user-specified variable indicated by "dist_name"
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.