Plotting lmer results and getting contrasts

Dear all,

I just started using DataSHIELD. The purpose is to evaluate the possibility to use DataSHIELD in our upcoming medical research. Do do so I am trying to do a linear mixed model analysis.

My code looks like this:

tryCatch(
  {
    m1 <- ds.lmerSLMA(
      formula = "Var1 ~ Time * Group + (1|ID)",
      data = "D_Supine",
      datasources = conns,
      newobj = "m1"
    )
  }, error = function(e) {
    print(e)
    print(datashield.errorMessages())
  }
)

My questions:

  1. Are there any good tutorials on doing lmer analysis with DataSHIELD?
  2. How could I calculate contrasts etc using the object DataSHIELD returns?

Thanks for any help and ideas.

Best, Jonathan

Hi Jonathan,

Here is a tutorial I delivered on mixed effects models:

Could you give me an example of the contrasts you are looking to do, and I can have a think whether/how it is possible?

Cheers, Tim

Here is the markdown file: