Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 29 additions & 9 deletions scriptsR/linearModel/linearModel_nasdaq.R
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env Rscript
##
####
######
Expand All @@ -6,8 +7,17 @@
####
##
print("hello, this is some linear model stuff!!")

dataMaster <- read.csv("/home/dc/myProjects/learn/learnCode/dataScience_stockMarket/data_1/data_master_1.csv")

# Add the directory path of data_1/data_master_1.csv file
wd <- getwd()
setwd("../../")
parent <- getwd()
setwd(wd)
print(parent)

# Load the data file

dataMaster <- read.csv(file.path(parent, "data_1/data_master_1.csv"))

attach(dataMaster)

Expand Down Expand Up @@ -42,14 +52,24 @@
# MTS
# plm


# install.packages("ggplot2")
# install.packages("forecast")
# install.packages("astsa")
# install.packages("car")
# install.packages("MTS")


# install.packages("ggplot2")
# install.packages("forecast")
# install.packages("astsa")
# install.packages("car")
# install.packages("MTS")

# Active library
# ==============
library(ggplot2)
library(forecast)
library(astsa)
library(car)
library(MTS)
library(methods)
library(timeDate)
# load the packages


require(ggplot2)
require(forecast)
Expand Down