Learn R Programming

packDAMipd (version 1.1.0)

plot_meanSE_longitudinal_twogroups: Function to plot mean and SE for longitudinal observations for twogroups compared

Description

Function to plot mean and SE for longitudinal observations for twogroups compared

Usage

plot_meanSE_longitudinal_twogroups(
  thedata,
  columnnames,
  timepoints,
  observation
)

Value

the plot that shows mean and SE

Arguments

thedata

the data where the observations are held

columnnames

columnnames in the data where the intersted observations

timepoints

the timepoints at which the descriptive analysis is done

observation

name of the observations

Examples

Run this code
eg_data <- as.data.frame(list(no = c(1, 2, 3, 4),
mark_at_1 = c(12, 7, 23, 45), gender = c("M", "F", "M", "F"),
mark_at_2 = c(12, 34, 89, 45), trialarm = c("1","1","2","2")))
plot_meanSE_longitudinal_twogroups(eg_data,  c("mark_at_1", "mark_at_2"),
c("1","2"), "mark")

Run the code above in your browser using DataLab