#Using the Adjust closing values
ProjectTeam Python: Don Bui, Ben Aboagyi, Candida Lubongo, Hassan Jamy10/31/2020setwd(‘D:\Temp\UHD\STAT5307\Project’)datastck <- read.csv(“AAPL.csv”)#Using the Adjust closing valuesstck <- ts(datastck$Adj.Close, start=c(2015, 1), end=c(2020, 10), frequency = 12)# Plot ts objects#autoplot(stck) + labs(x=”Year”, y=”Closing Values”, title=”stock”)#plot.ts(stck, main = “stock”, ylab =’Closing Values’, xlab = ‘Year’)plot(stck, main = “APPLE stock”)#smooth0=ksmooth(time(stck), stck, “normal”, bandwidth=.5)#lines(smooth0, col=”red”)smooth2=lowess(stck, f=.1) # seasonal component (1% […]
#Using the Adjust closing values Read More »