Learn R Programming

defm (version 0.1-1)

defm-names: Access to the names of a model's datasets

Description

Retrieve the column names of the dependent variable (y) and independent variable (x) of an object of class DEFM.

Usage

get_Y_names(m)

get_X_names(m)

Value

A character vector.

A character vector with the names of the dependent or independent variables.

Arguments

m

An object of class DEFM.

Examples

Run this code
#' Using Valente's SNS data
data(valentesnsList)

# Creating the DEFM object
mymodel <- new_defm(
  id = valentesnsList$id,
  X = valentesnsList$X,
  Y = valentesnsList$Y,
  order = 0
)

# Getting the names
get_X_names(mymodel)
get_Y_names(mymodel)

Run the code above in your browser using DataLab