Description Usage Arguments Value Examples
Combines profile membership data from the latent profile analysis with other data for using the profile membership to predict and be predicted by the system variable.
1 | makeFullData(basedata, dyadId, personId, dist_name, lpaData, params)
|
basedata |
The original dataframe provided by the user that includes all variables needed for an rties analysis, including potential system and control variables, etc. |
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. |
dist_name |
The name of the column in the dataframe that has a variable that distinguishes the partners (e.g., sex, mother/daughter, etc) that is numeric and scored 0/1. |
lpaData |
The object returned by the "inspectProfiles" function |
params |
The list called "params" returned by one of the "indiv" functions (e.g., indivInertCoord or indivClo) |
A dataframe that contains all variables needed for using the profiles to predict, or be predicted by, the system variable.
1 2 3 4 5 6 7 8 9 | data <- rties_ExampleDataShort
newData <- dataPrep(basedata=data, dyadId="couple", personId="person",
obs_name="dial", dist_name="female", time_name="time", time_lag=2)
ic <- indivInertCoord(prepData=newData, whichModel="inertCoord")
profiles <- inspectProfiles(whichModel="inertCoord", prepData=newData,
paramEst=ic$params, n_profiles=2)
fullData <- makeFullData(basedata=data, dyadId="couple", personId="person",
dist_name="female", lpaData=profiles, params=ic$params)
head(fullData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.