Maybe you didn’t report this mistake because of the same problem. I hope this blog can help those students who made the same mistake as me
When I was writing data analysis and R software job, I always reported the error of “no (non-NA) case available” when I was executing the following code. No matter how I looked at it, I always felt that my code was perfectly written. Why?Finally, it turned out that the data.exercise4.2.sav I had quoted was having a problem and the corresponding independent variable X2 in the data file had forgotten to enter the values!!
> library(foreign)
> x<-read.spss("data.exercise4.2.sav",to.data.frame=TRUE)
> lm.1<-lm(Y~X1+X2,data=x)
> summary(lm.1)
Solution: open the.SAV file in SPSS, and add the value of the independent variable X2.
Read More:
- Error: internal_relocation (type: OFFSET_IMM) not fixed up
- error: invalid compressed data to inflate file #14: bad zipfile offset (local header sig):
- R language: na.fail and na.omit
- Java project cannot import entity class package and service package, controller layer reports error, fix project setup is OK
- Python generates (x, y, z) 3D coordinate sequence
- Error in ffmpeg decoding real-time stream “non existing PPS 0 referenced, decode”_ slice_ header error,no frame!”
- In many cases, the problem of error reporting by label in latex
- Type error: cannot unpack non Iterable non type object appears when starting Bert server in Ubuntu system
- A problem occurred configuring project ‘:x x x‘. > java.lang.NullPointerException (no error message)
- module ‘win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9‘ has no attribute ‘CLSIDToClassMa
- RuntimeError: Expected hidden[0] size (x, x, x), got(x, x, x)
- Error in machine learning training data (FIT): valuee rror:Unknown label type:‘continuous‘
- Solve the problem of using in tensoft 2. X tf.contrib.slim No module named appears in the package: tensorflow.contrib problem
- CLP: error: getaddrinfo enotfound http://x.x.x.x/
- [Solved] emulator: glteximage2d: got err pre 🙁 0x502 internal 0x1908 format 0x1908 type 0x1401
- In echarts label.formatter Non effectiveness
- 1067 – Invalid default value for ‘sex‘1366 – Incorrect string value: ‘\xE6\x8A\x80\xE6\x9C\xAF…‘ f
- An error is reported when installing the package directly in pycharm, but it can be installed through the terminal. Error non zero exit code (2)
- Common cases of ad reporting an error as unknown pin
- 【PTA:】 Error: class X is public should be declared in a file named X.java