Learn R Programming

⚠️There's a newer version (1.2.17) of this package.Take me there.

CorReg (version 1.0.5)

Linear Regression Based on Linear Structure Between Covariates

Description

Linear regression based on a recursive structural equation model (explicit correlations) found by a MCMC algorithm. It permits to face highly correlated covariates. Variable selection is included (by lasso, elastic net, etc.). It also provides some graphical tools for basic statistics and regression trees.

Copy Link

Version

Install

install.packages('CorReg')

Monthly Downloads

167

Version

1.0.5

License

CeCILL

Maintainer

Clement THERY

Last Published

June 9th, 2015

Functions in CorReg (1.0.5)

mixture_generator

Gaussian mixtures dataset generator with regression between the covariates
matplot_zone

Matplot with curves comparison by background colors.
Terminator

Destructing values to have missing ones
readZ

read the structure and explain it
BicZ

Compute the BIC of a given structure
density_estimation

BIC of estimated marginal gaussian mixture densities
CorReg-package

Quick tutorial for CorReg package
showdata

To show the missing values of a dataset
MSE_loc

simple MSE function
structureFinder

MCMC algorithm to find a structure between the covariates
Conan

Removes missing values (rows and column to obtain a large full matrix)
compare_struct

To compare sub-regression structures
recursive_tree

decision tree in a recursive way
correg

Linear regression using CorReg's method, with variable selection.
confint_coef

plot and give confidence intervals on the coefficients estimated in a model or for proportions
searchZ_sparse

Sparse structure research
WhoIs

Give the partition implied by a structure
MSEZ

Computes the MSE on the joint distribution of the dataset
cleanYtest

Selection method based on p-values (coefficients)
cleanZR2

To clean Z based on R2
fillmiss

Fill the missing values in the dataset
compare_zero

compare 0 values in two vectors
rforge

Upgrades a package to the lastest version on R-forge
readY

a summary-like function
BicZcurve

Curve of the BIC for each possible p2 with a fixed Z and truncature of Z
cleancolZ

clean Z columns (if BIC improved)
R2Z

Estimates R2 of each subregression
Estep

Imputation of missing values knowing alpha (E step of the EM)
CVMSE

Cross validation
Y_generator

Response variable generator with a linear model
ProbaZ

Probability of Z without knowing the dataset. It also gives the exact number of binary nilpotent matrices of size p.
compare_beta

compare signs of the coefficients in two vectors
compare_sign

compare signs of the coefficients in two vectors
hatB

Estimates B matrix
cleanZ

clean Z (if BIC improved)
OLS

Ordinary Least Square efficiently computed with SEM for missing values
Winitial

initialization based on a wheight matrix (correlation or other)