Learn R Programming

binomialMix (version 1.0.1)

init_design_matrices: Initialize design matrices from dataframe to cluster

Description

Initialize design matrices from dataframe to cluster

Usage

init_design_matrices(formula, df, col_id = "id")

Arguments

formula

A character formula with target variable and predictor variables

df

A dataframe to cluster

col_id

A character value corresponding to name of id column in the dataframe df

Value

result_list A list containing the df filter by id levels, the design matrices filter by id levels, the number of rows for df filter by id levels

Examples

Run this code
# NOT RUN {
init_design_matrices("ctr~timeSlot",adcampaign,"id")
# }

Run the code above in your browser using DataLab