The kappa()
function can help. Here is a simulated example:
> set.seed(42)
> x1 <- rnorm(100)
> x2 <- rnorm(100)
> x3 <- x1 + 2*x2 + rnorm(100)*0.0001 # so x3 approx a linear comb. of x1+x2
> mm12 <- model.matrix(~ x1 + x2) # normal model, two indep. regressors
> mm123 <- model.matrix(~ x1 + x2 + x3) # bad model with near collinearity
> kappa(mm12) # a 'low' kappa is good
[1] 1.166029
> kappa(mm123) # a 'high' kappa indicates trouble
[1] 121530.7
and we go further by making the third regressor more and more collinear:
> x4 <- x1 + 2*x2 + rnorm(100)*0.000001 # even more collinear
> mm124 <- model.matrix(~ x1 + x2 + x4)
> kappa(mm124)
[1] 13955982
> x5 <- x1 + 2*x2 # now x5 is linear comb of x1,x2
> mm125 <- model.matrix(~ x1 + x2 + x5)
> kappa(mm125)
[1] 1.067568e+16
>
This used approximations, see help(kappa)
for details.
更多相关的讨论见:
Screening (multi)collinearity in a regression model
相关推荐
Source in Delphi to recognize CPU in Your computer. Source and compile EXE included.
A two layer perceptron implemented in MatLab to recognize handwritten digits based on the MNIST dataset..zip
In machine learning, support vector machines (SVMs, also support vector networks[1]) are supervised learning models with associated learning algorithms that analyze data and recognize patterns, used ...
world scene from 2D camera motion and common camera reprojection techniques Track visually salient objects by searching for and focusing on important regions of an image Detect faces using a cascade ...
a method to recognize specificity determining.pdf
Chapter 4: Of Bikes and Men: Fitting a Regression Model to Data with Gradient Descent Chapter 5: You Are Not An Unique Snowflake: Detecting Patterns with Clustering and Principle Component Analysis ...
This book examines a variety of machine learning models including popular machine learning algorithms such as k-nearest neighbors, logistic regression, naive Bayes, k-means, decision trees, and ...
Many classic and contemporary ...system can efficiently and effectively recognize faces under a variety of realistic conditions, using only frontal images under the proposed illuminations as training.
hand-keras-yolo3-recognize 模型训练参考:https://gitee.com/cungudafa/keras-yolo3 yolo3识别这里参考于:https://github.com/AaronJny/tf2-keras-yolo3
We apply it in a multi-pass overall OCR process which achieves “universal” OCR over 54 tested languages in 18 distinct scripts, over a wide variety of typefaces in each. For comparison we also ...
This book examines a variety of machine learning models including popular machine learning algorithms such as k-nearest neighbors, logistic regression, naive Bayes, k-means, decision trees, and ...
We use the color cooccurrence histogram (CH) for recognizing objects in images...showing that it recognize objects in spite of confusing background clutter, partial occlusions, and flexing of the object.
Data Mining: A Tutorial-Based Primer, Second Edition provides a comprehensive introduction to data mining with a focus on model building and testing, as well as on interpreting and validating results....
experts from all over the world still recognize the importance of this event as a fruitful exchange of ideas, both during the presentations and during breaks and social events, in which state-of-the-...
Recognize and apply the most common design patterns used in options trading Save time by using the latest C++ features such as the STL and the Boost libraries Who This Book Is For Options and ...
We show that an end-to-end deep learning approach can be used to recognize either English or Mandarin Chinese speech—two vastly different languages. Because it replaces entire pipelines of hand-...
The Spring Framework was created with a very specific goal in mind—to make developing Java EEapplications easier. Along the same lines, Spring in Action, Third Editionwas written to make learning how...
本文提供一种高效的QR识别方法。希望大家能一起分享。好东西。