dssLM: Aggregate linear models into a single one for the estimation...

View source: R/dssLM.R

dssLMR Documentation

Aggregate linear models into a single one for the estimation of beta.

Description

Takes as input multiple results from 'linregDSS' to make a single linear model, as if individuals from the multiple sources were pooled together before modeling.

Usage

dssLM(
  what,
  dep_var,
  expl_vars = NULL,
  async = TRUE,
  datasources = NULL,
  type = "combine"
)

Arguments

what:

dataframe name.

dep_var:

[string] the column name for the dependent variable (y).

expl_vars:

[vector of strings] the column names for the explanatory variables.

type:

[string] if 'split', return a list of the individual models of each datasource, if 'combine' return the global model. If TRUE, merge them into a single model (default).

Value

the MLE estimator for beta for the pooled individuals.


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