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.
- Interesting undefined columns selected from read.table and read.csv
- MYSQL ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key constraint fails
- Reading and saving opencv Python video
- MySQL error: 1005 can’t create table (error: 150)
- Mysql error 1452 – Cannot add or update a child row: a foreign key constraint fails
- Error in ffmpeg decoding real-time stream “non existing PPS 0 referenced, decode”_ slice_ header error,no frame!”
- MySQL error 1451 23000 foreign key exception handling
- GPU hardware acceleration related problems, solve flash screen
- In pandas, dataframe and np.array The mutual transformation between the two
- MySQL:Foreign key fails with error Error Code: 1452.
- R language error in match.names (clabs, names(xi)) :
- Python error TypeError:can ‘t convert complex to float
- Usage and examples of three important functions of tidyr package in R language: gather, spread and separate
- Solution to error 1452: cannot add or update a child row: a foreign key constraint failures in MySQL
- Mysql error when deleting the table structure: Error Code: 1217. Cannot delete or update a parent row: a foreign key constraint fails
- How to solve MySQL error 1049 (42000): unknown database ‘database’
- mysql Error Code: 1022. Can’t write; duplicate key in table `xxx`
- MySQL failed to add foreign key: SQL 1452 cannot add or update a child row:a foreign key constraint fails
- Solving Python error: local variable ‘a’ referenced before assignment
- MySQL error code 1217 (ER_ROW_IS_REFERENCED): Cannot delete or update a parent row: a foreign key co