This is the code I wrote-
#HLR
setwd("c:/users/miria/desktop")
patient1 <-read.csv("patient1.csv")
library(readr)
Statistics <- read_csv("patient1.csv")
#step 1
#פה בעצם משווים למודל שאין בו בכלל מנבאים
step1 <- lm (Symptoms~ Meeting + Alliance,
             data= Statistics)
summary(step1)
#step 2
step2 <- lm (Symptoms~ Meeting + Alliance
             + Adherence  ,
             data= Statistics)
summary(step2)
#step 3
step3 <- lm (Symptoms~ Meeting + Alliance + Adherence 
             +Competence  ,
             data= Statistics)
summary(step3)
> dput (patient1)
structure(list(Meeting = 1:5, Competence = c(4.75, 4.44, 3.33, 
4.4, 3.8), Adherence = c(0.23, 1.65, 0.32, 1.54, 1.16), Alliance = c(12L, 
2L, 5L, 6L, 7L), Symptoms = c(37L, 46L, 47L, 48L, 40L)), class = "data.frame", row.names = c(NA, 
-5L))
> dput (Statistics)
structure(list(Meeting = c(1, 2, 3, 4, 5), Competence = c(4.75, 
4.44, 3.33, 4.4, 3.8), Adherence = c(0.23, 1.65, 0.32, 1.54, 
1.16), Alliance = c(12, 2, 5, 6, 7), Symptoms = c(37, 46, 47, 
48, 40)), row.names = c(NA, -5L), spec = structure(list(cols = list(
    Meeting = structure(list(), class = c("collector_double", 
    "collector")), Competence = structure(list(), class = c("collector_double", 
    "collector")), Adherence = structure(list(), class = c("collector_double", 
    "collector")), Alliance = structure(list(), class = c("collector_double", 
    "collector")), Symptoms = structure(list(), class = c("collector_double", 
    "collector"))), default = structure(list(), class = c("collector_guess", 
"collector")), delim = ","), class = "col_spec"), problems = <pointer: 0x000002e762a9a090>, class = c("spec_tbl_df", 
"tbl_df", "tbl", "data.frame"))
In step 3 I expected to get a response like I got after step 2, but instead in many of the columns apeared NaN. When taking off adherence/ competence it worked fine, and only when trying all 4 at the same time, again I ended up with many NaN.
I tried using less predictors- When taking off adherence/ competence it worked fine, and only when trying all 4 at the same time, again I ended up with many NaN.
 
    