pbg.Rd
The pbg
function implements three hypothesis tests. These tests are whether the profiles are parallel, have equal levels, and are flat across groups defined by the grouping variable. If parallelism is rejected, the other two tests are not necessary. In that case, flatness may be assessed within each group, and various within- and between-group contrasts may be analyzed.
pbg(data, group, original.names = FALSE, profile.plot = FALSE)
A matrix or data frame with multiple scores; rows represent individuals, columns represent subscores. Missing subscores have to be inserted as NA.
A vector or data frame that indicates a grouping variable. It can be either numeric or character (e.g., male-female, A-B-C, 0-1-2). The grouping variable must have the same length of x. Missing values are not allowed in y.
Use original column names in x. If FALSE, variables are renamed using v1, v2, ..., vn for subscores and "group" for the grouping variable. Default is FALSE.
Print a profile plot of scores for the groups. Default is FALSE.
An object of class profg
is returned, listing the following components:
data.summary
- Means of observed variables by the grouping variable
corr.table
- A matrix of correlations among observed variables splitted by the grouping variable
profile.test
- Results of F-tests for testing parallel, coincidential, and level profiles across two groups.