xmpl {pcpattL} | R Documentation |
Example Data Set
Description
Data to illustrate the usage of pcpattL
.
Usage
data(xmpl)
Format
A data frame with 100 observations on the following 5 variables.
I1
- responses to first item, (1) strong agreement, to
(5) strong disagreement
I2
- responses to second item, like
I1
I3
- responses to thirs item, like
I1
SEX
- (1) male, (2) female
EDU
- (1) low education, (2) high education
All values are numeric.
Details
Datasets and/or dataframes used in pcpattL
are required
to have the follwing structure:
- All values must be numeric.
- The item responses must be in the leftmost columns (such as
I1
to I3
above).
- Categorical subject covariates follow the item responses (rightmost columns)
and their levels must be specified as consecutive integers. If in a used
datafile or dataframe these are defined as R factors they will be
converted to integers. This is not possible if characters are used
as factor levels and, consequently,
pcpattL
will produce an error.
Examples
data(xmpl)
head(xmpl)
[Package
pcpattL version 0.5.3
Index]