plot_meanSE_longitudinal_twogroups {packDAMipd}R Documentation

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
)

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

Value

the plot that shows mean and SE

Examples

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")

[Package packDAMipd version 1.1.0 Index]