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. ( |
id |
Column name of participant id ( |
questions |
Column names of ordered list of questions ( |
scale |
name of the questionaire ( |
setting |
questionaire specific settings ( |
prefix |
prefix of column names of questionaire scores ( |
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]