Learn R Programming

IPDFileCheck (version 0.8.1)

return_longitudinal_summary: Function to get the longitudinal summary mean and sd

Description

Function to get the longitudinal summary mean and sd

Usage

return_longitudinal_summary(thedata, columnnames, nrcode = NA)

Value

returns the effect sizes

Arguments

thedata

a data frame

columnnames

column names of the data that are some observations at some time points

nrcode

the non response code in the data

Examples

Run this code
test_data <- as.data.frame(cbind(c(1,2,3,4,5), c(20,40,60,80,100),
c("F", "F", "M", "M", "F")))
colnames(test_data) <- c("no", "marks", "gender")
test_data$marks <- as.numeric(test_data$marks)
results <- return_longitudinal_summary(test_data, "marks", NA)

Run the code above in your browser using DataLab