market_descriptives: Market side descriptive statistics

market_descriptivesR Documentation

Market side descriptive statistics

Description

Market side descriptive statistics

Usage

demand_descriptives(object)

supply_descriptives(object)

## S4 method for signature 'market_model'
demand_descriptives(object)

## S4 method for signature 'market_model'
supply_descriptives(object)

Arguments

object

A model object.

Details

Calculates and returns basic descriptive statistics for the model's demand or supply side data. Factor variables are excluded from the calculations. The function calculates and returns:

  • nobs Number of observations.

  • nmval Number of missing values.

  • min Minimum observation.

  • max Maximum observation.

  • range Observations' range.

  • sum Sum of observations.

  • median Median observation.

  • mean Mean observation.

  • mean_se Mean squared error.

  • mean_ce Confidence interval bound.

  • var Variance.

  • sd Standard deviation.

  • coef_var Coefficient of variation.

Value

A data tibble containing descriptive statistics.

Functions

  • demand_descriptives: Demand descriptive statistics.

  • supply_descriptives: Supply descriptive statistics.

Examples

# initialize the basic model using the houses dataset
model <- new(
  "diseq_basic", # model type
  subject = ID, time = TREND, quantity = HS, price = RM,
  demand = RM + TREND + W + CSHS + L1RM + L2RM + MONTH,
  supply = RM + TREND + W + L1RM + MA6DSF + MA3DHF + MONTH,
  fair_houses(), # data
  correlated_shocks = FALSE # allow shocks to be correlated
)

# get descriptive statistics of demand side variables
demand_descriptives(model)

# get descriptive statistics of supply side variables
supply_descriptives(model)

diseq documentation built on June 2, 2022, 1:10 a.m.