Description Usage Arguments Details Value Author(s) See Also Examples
Returns the pearson correlation for each row in y.set with a given numeric vector 'template' for both the overall (raw) scores in y.set and the distinctive scores in y.set after using linear regression to remove the mean profile in y.set.
1 | temp.match(template, y.set, nomiss = 1, distinct = FALSE)
|
template |
A numeric vector of length equal to the number of columns of y.set to be correlated with each row of y.set |
y.set |
A data.frame or matrix of which rows are to be correlated with template |
nomiss |
A numeric element between .00 and 1.00 specifying the proportion values in y.set required to be complete before NA is returned instead of the the correlation. The default of 1.00 means that any missing case returns a result of NA. |
distinct |
A logical indicating whether distinctive profile correlations (agreement) between template and y.set should be computed. |
For each observational unit in y.set its correlation with template is returned. If the proportion of valid values for an observational unit is less than nomiss NA is returned for that observational unit. If the distinct option is set to TRUE, this function also returns the "distinctive" correlations to the template after statistically removing the mean profile in y.set from each profile in y.set.
If distinct = FALSE: Returns a vector or template match scores corresponding to each row in y. If distinct = TRUE: A list of length 2:
yNorm |
A vector containing the normative (average) profile of y.set |
Matches |
A data.frame containing the Overall and Distinctive template match scores |
Ryne A. Sherman
Profile.r
Profile.reg
temp.resid
temp.match.rep
1 2 3 4 5 6 7 8 9 10 11 | data(caq)
data(opt.temp)
# Template Matching
# Sometimes we want to know how closely each Profile matches a theoretically
# or empirically derived Profile (i.e., a template).
# Here is the template for the optimally adjusted person in the CAQ.
opt.temp
temp.match(opt.temp, caq) # The overall template match scores
temp.match(opt.temp, caq, distinct=TRUE) # Both overall and distinctive template match scores
# The replicability (reliablity) of the template match scores can also be estimated
temp.match.rep(opt.temp,caq)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.