dssNlme_lme: Calls nlme::lme on the provided arguments

View source: R/dssNlme.R

dssNlme_lmeR Documentation

Calls nlme::lme on the provided arguments

Description

See the documentation of lme in package nlme

Usage

dssNlme_lme(..., async = TRUE, datasources = NULL)

Arguments

...

further arguments to be passed to nlme::lme. The data argument must pe passed as a character, the name of the input dataframe

async

same as in datashield.assign

datasources

same as in datashield.assign

newobj

a character, name of the new dataframe

Value

a stripped down lmeObject (without the 'data' and 'call' elements). See the documentation for lme and lmeObject in package lme.

Examples

# open a local pseudo connection:
library(DSLite)
dslite.server1 <<- newDSLiteServer(config = defaultDSConfiguration(include=c('dsSwissKnife')))
builder <- newDSLoginBuilder()
builder$append(server="server1", url='dslite.server1',driver = "DSLiteDriver")
logindata <- builder$build()
opals <- datashield.login(logins = logindata)#' # load the Orthodont dataset
# load the Orthodont dataset
 datashield.aggregate(opals[1], as.symbol('partialData("Orthodont", NULL, NULL, "nlme")'))
  dssNlme_groupedData(newobj = 'grouped', formula =  distance ~ age | Subject, data ='Orthodont', async = FALSE, datasources = opals[1] )
 lme.model <- dssNlme_lme(fixed = distance ~ age, data = 'grouped', random = ~ 1, async = FALSE, datasources = opals[1])
summary(lme.model[[1]])


sib-swiss/dsSwissKnifeClient documentation built on July 16, 2025, 6:25 p.m.