market_descriptives | R Documentation |
Market side descriptive statistics
demand_descriptives(object) supply_descriptives(object) ## S4 method for signature 'market_model' demand_descriptives(object) ## S4 method for signature 'market_model' supply_descriptives(object)
object |
A model object. |
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.
A data tibble
containing descriptive statistics.
demand_descriptives
: Demand descriptive statistics.
supply_descriptives
: Supply descriptive statistics.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.