SSrat (version 1.1)

enterratdata: 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.

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.

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.

See Also

calcgroup calcallgroups readratdatafixed edit

Examples

Run this code
# NOT RUN {
# 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()
# }
# NOT RUN {
 
# edit existing data frame
# }
# NOT RUN {
df=enterratdata(df)
# }
# NOT RUN {
 
# add respondent names to the dataframe
# }
# NOT RUN {
df=enterratdata(df, resplabel=TRUE)
# }
# NOT RUN {
 
#create a new data frame with rating data and respondent names
# }
# NOT RUN {
df=enterratdata(resplabel=TRUE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab