questionaire {clintools}R Documentation

Calculate scores from questionaire (questionaire)

Description

questionaire() is a function which calculates scores from a questionaire.

Usage

questionaire(df,id,questions,scale,setting,prefix)

Arguments

df

dataframe. (df)

id

Column name of participant id (string)

questions

Column names of ordered list of questions (list)

scale

name of the questionaire (string)

setting

questionaire specific settings (string)

prefix

prefix of column names of questionaire scores (string)

Value

Returns summarised information in dataframe.

Examples

## Not run: 

   df <- df_b[,grepl("ssid|KIDSCREEN52_D_",colnames(df_b))][,c(1:53)]
   k52 <- questionaire(df,id = "ssid",
   questions=colnames(df)[grepl("KIDSCREEN",colnames(df))],
   scale="Kidscreen-52",
   setting="proxy")#'

## End(Not run)


[Package clintools version 0.9.10.1 Index]