FuzzyCRegression.aic — Methodaic()Calculates Aikike Inforation Criteria for fitted FCR model, used for selecting optimal number of groups
FuzzyCRegression.bic — Methodbic()Calculates Bayesian Inforation Criteria for fitted FCR model, used for selecting optimal number of groups
FuzzyCRegression.coef — Methodcoef()Extract coefficients from fitted model
FuzzyCRegression.coefnames — Methodcoefnames()Returns names of coefficients from fitted model
FuzzyCRegression.confint — Methodconfint()Returns lower and upper confidence interval for fitted model, for specified significance level (default = 0.95)
FuzzyCRegression.distribution — Methoddistribution()Calculates distribution of weighted coefficients from fitted model
Arguments
results::FCRModelModel type from fcr outputindex::IntegerColumn index of variable in X matrix to calculate coefficient distibution for (defaults to 1)
FuzzyCRegression.fit — Methodfit()Fits the FCR model
Arguments
- `df`: name of dataframe (if missing, data must be passed as arrays)
- `y`: column name or array holding values of the dependent variable (required)
- `X`: a list of column names or a matrix holding values of the independent variable(s) with heterogeneous coefficients (required)
- `Z`: a list of column names or a matrix holding values of the independent variable(s) with homogeneous coefficients
- `G`: number of groups (required)
- `m`: regularization parameter (greater than 1), where group assignment becomes binary as m approaches 1 (default = 1.5)
- `unit`: column name or array with unit identifier (if panel structure)
- `time`: column name or array with time indicators (if panel structure)
- `startvals`: number of starting values for the minimization routine (default = 100)
- `cores`: number of parallel workers (default = 1)FuzzyCRegression.predict — Methodpredict()Obtain predicted values of the dependent variable from the fitted model, using modal group membership
FuzzyCRegression.residuals — Methodresiduals()
Get the vector of residuals from the fitted model
FuzzyCRegression.stderror — Methodstderror()Standard errors from fitted model
FuzzyCRegression.summarize — Methodsummarize()Summarizes results from fitted model
FuzzyCRegression.vcov — Methodvcov()Variance covariance matrix from fitted model
FuzzyCRegression.weights — Methodweights()Calculate group weights from fitted model, using modal group membership