changes a full covariance matrix by selecting target variables, recoding them, combining them (compute the mean of two or more variables), and by adding rows/columns with NA if focal variables are not available.
targetVariables: (col-/row-) number or names of the target variables
recodeVariables: (col-/row-) number or names of the target variables require inverse coding
combineVariables: list of vectors, which put together the targeted variables that should be used for composite variables
combineVariablesNames: new names for combined variables - not really important
missingVariables: missing variables
n.latent: number of (latent) variables - actually it is the number of all variables
Tpoints: number of time points.
sampleSize: sample size
pairwiseN: matrix of same dimensions as empcov containing possible pairwiseN.
empcov: empirical correlation matrix
Returns
returns a list with two elements. The first element (resultsr)containstheadaptedcorrelationmatrix,andthesecondelement(resultspairwiseNNew) an adapted version of a matrix of pairwise N if pariwiseN was provided for the original correlation matrix supplied.