lcModelWeightedPartition: Create a lcModel with pre-defined weighted partitioning

View source: R/modelWeightedPartition.R

lcModelWeightedPartitionR Documentation

Create a lcModel with pre-defined weighted partitioning

Description

Create a lcModel with pre-defined weighted partitioning

Usage

lcModelWeightedPartition(
  data,
  response,
  weights,
  clusterNames = colnames(weights),
  time = getOption("latrend.time"),
  id = getOption("latrend.id"),
  name = "wpart"
)

Arguments

data

A data.frame representing the trajectory data.

response

The name of the response variable.

weights

A numIds x numClusters matrix of partition probabilities.

clusterNames

The names of the clusters, or a function with input n outputting a ⁠character vector⁠ of names.

time

The name of the time variable.

id

The name of the trajectory identification variable.

name

The name of the method.


latrend documentation built on March 31, 2023, 5:45 p.m.