Logaritmos
Call:
lm(formula = y ~ x)
Coefficients:
(Intercept) x
0.9752 0.7730
> plot(x,y)
>plot(x="rendimiento",y="ventas",col="red"
+
+
> plot(xlab="rendimiento")
Error en xy.coords(x, y, xlabel, ylabel, log) :
el argumento"x" está ausente, sin valor por omisión
> plot(x,y,xlab="rendimiento",ylab="ventas",col=2)
>plot(x,y,xlab="rendimiento",ylab="ventas",col=2,lwd=5))
Error: inesperado ')' en "plot(x,y,xlab="rendimiento",ylab="ventas",col=2,lwd=5))"
>plot(x,y,xlab="rendimiento",ylab="ventas",col=2,lwd=5)
> plot(x,y,xlab="rendimiento",ylab="ventas",col=2,lwd=10)
> plot(x,y,xlab="rendimiento",ylab="ventas",col=2,lwd=100)
>plot(x,y,xlab="rendimiento",ylab="ventas",col=2,lwd=50)
> plot(x,y,xlab="rendimiento",ylab="ventas",col=2,lwd=20)
>plot(x,y,xlab="rendimiento",ylab="ventas",col=2,lwd=20,abline)
Error en plot.xy(xy, type, ...) : tipo de gráfico inválido
> abline(lm(y~x))
>plot(x,y,xlab="rendimiento",ylab="ventas",col=2,lwd=20)
> abline(lm(y~x))
> cor(x,y)
[1] 0.9555239
> cor(0.9555^2)
Error en cor(0.9555^2) : supply both'x' and 'y' or a matrix-like 'x'
> cor(x,y)^2
[1] 0.9130259
> 0.9555^2
[1] 0.9129803
> 0.9748+0.7730*16
[1] 13.3428
>0.9748+0.7730*19
[1] 15.6618
> 0.9748+0.7730*29
[1] 23.3918
> 0.9748+0.7730*35
[1] 28.0298
> cumsum(x)
[1] 15 33 51 71 94 119 149
>
Regístrate para leer el documento completo.