Description Usage Arguments Details Value Author(s) See Also Examples
Returns the regression coefficients for each observation (row) with item pairs making up the columns in x.set and y.set.
1 | Profile.reg(x.set, y.set, center = "group", std = FALSE, nomiss = 0.8)
|
x.set |
A data.frame or matrix, with the same dimensions as y.set, of which each row is a predictor of the corresponding row in y.set. |
y.set |
A data.frame or matrix, with the same dimensions as x.set, of which each row is to be predicted by the correpsonding row in x.set. |
center |
A character string specifying the type of centering to be done. If "group" (default) is used then each column in x.set is centered on its own column mean. If "grand" is used then each column in x.set is centered on the mean of all data in x.set. If "none" is used then no centering is done. |
std |
A logical vector indicating whether variables should be standardized prior to analysis. The default option (FALSE) does no standardizing. Using TRUE standardizes both the variables in x.set and y.set with centering determined by the center="option". |
nomiss |
A numeric between .00 and 1.00 specifying the proportion of x-y pairs required to be complete before NA is returned instead of the regression coefficients. The default of .80 means that if more than 20 percent of the x-y pairs are incomplete an NA will be returned. |
For each observational unit, the regression coefficients (slope and intercept) between its variables in x.set and y.set are returned. If fewer than 'nomiss' of the x-y pairs of observations are valid (complete) then NA will be returned for both coefficients.
Returns a data.frame with 2 columns
Intercepts |
Regression Intercepts |
Slopes |
Regression Slopes |
Ryne A. Sherman
1 2 3 4 5 6 7 8 9 10 | data(acq1)
data(caq)
#Lets get the regression coeficients for
#predicting aquaintance California Adult Q-Set (CAQ)
#personality ratings from #self-report CAQ ratings
Profile.reg(caq, acq1)
# Get descriptives for the results
describe(Profile.reg(caq, acq1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.