enterratdata {SSrat}R Documentation

Enter or edit rating data

Description

Enter or edit rating data. Function enterratdata creates a dataframe in a format that can be processed by SSrat functions calcgroup and calcallgroups.

Usage

enterratdata(dataframe = NULL, resplabel = F)

Arguments

dataframe

Ssrat conformant dataframe. If NULL a new dataframe is created (default). Otherwise, the dataframe is opened for editing.

resplabel

Boolean, default is FALSE. When TRUE, a column resplabel is added as the first column of the dataframe. If dataframe already has a column resplabel, this id preserved.

Details

The SSrat conformant dataframe has repondent identifiers and ratings received. The respondent identifiers are schoolid, groupid, respid en optionally respname. The ratings received are named r01, r02 .. rn, where n is the last rated, with a maximum of r99. Multiple groups can be entered. It is not possible (or sensible) to add other variables.

Value

A data.frame with columns:

resplabel

An identification label of the rater (and of the assessed). Optional.

schoolid

Identification number of the secondary group level, most often a school.

groupid

Identification number of the first group level, most often a school class.

respid

Identification number of the rater (and of the assessed).

r01..r0n

Ratings received by respid = 1 .. respid = n, with a maximum ofr99. Respid's < 10 are padded with a zero.

Note

To allow for the combination of groups with different sizes in a single file, it is important to enumerate the n respondents from 1 to n, respectively use the columnnames r01 to rn for the received ratings. These column names are padded with a zero (r01, r02 etc.) to allow for easy ordening of these columns after a merge. Background data of each respondent can be added to the output data.frame of calcgroup or calcallgroups.

Author(s)

Hans Landsheer

See Also

calcgroup calcallgroups readratdatafixed edit

Examples


# These examples require human intervention and are therefore placed in a
# don't run section. They can only be excuted interactively.
# create a new data frame with rating data
## Not run: df=enterratdata()
 
# edit existing data frame
## Not run: df=enterratdata(df)
 
# add respondent names to the dataframe
## Not run: df=enterratdata(df, resplabel=TRUE)
 
#create a new data frame with rating data and respondent names
## Not run: df=enterratdata(resplabel=TRUE)


[Package SSrat version 1.1 Index]