Hello I have to follow a determination of Anvisa RDC 166/2017 and one of the things she asks is the comparison of two straight lines through the tilt, intercept and calculation of coincidence. Of the three calculations I could only do the coincidence, as shown below:
Comp=read.csv(file="C:/Users/porti/OneDrive/Script/efeito_matriz.csv",sep=";")
Comp
X1<-(Comp$"ï..X1")
X1
Y1<-(Comp$"Y1")
Y1
X2<-(Comp$"X2")
X2
Y2<-(Comp$"Y2")
Y2
x = c(X1, X2)
y = c(Y1, Y2)
z = factor(c(rep(1, length(X1)), rep(2, length(X2))))
z
C1 = lm(y~x*z)
C2 = lm(y~x)
anova(C1, C2)
Does anyone have an idea how I can compare the intercept and slope of these two curves?