導航:首頁 > 數據行情 > r軟體預測股票數據

r軟體預測股票數據

發布時間:2024-07-29 02:50:12

『壹』 R軟體使用htmlTreeParse解析新浪財經股票網頁總是中文出現亂碼。用各種編碼(gb2312,utf-8等)方式都不行。

不要用gb2312, 先轉換為utf-8,
iconv(province.stock, to="utf-8")
htmlTreeParse處理後,再轉換為
iconv(province.stock, to="gb2312")

『貳』 R語言怎麼把股票日收盤價轉換成對數收益率

知道一系列收盤價向量X,length=1000,求對數收益率的R語言代碼
acf(int[,2], lag.max = 15,type = "correlation", plot = TRUE,main='int monthly

acf(int.l[,2], lag.max = 15,type = "correlation", plot = TRUE,main='int monthly
log return')

Box.test(int[,2], lag = 5, type = "Ljung-Box")
Box.test(int[,2], lag = 10, type = "Ljung-Box")
Box.test(int.l[,2], lag = 5, type = "Ljung-Box")
Box.test(int.l[,2], lag = 10, type = "Ljung-Box")

運行結錯誤辦

> int <- read.table("d-intc7208.txt", head=T)
錯誤於file(file, "rt") : 打鏈結
外: 警告信息:
In file(file, "rt") :
打文件'd-intc7208.txt': No such file or directory

+ acf(int.l[,2], lag.max = 15,type = "correlation", plot = TRUE,main='int monthly
錯誤: 意外符號 in:
"
acf(int.l[,2], lag.max = 15,type = "correlation", plot = TRUE,main='int"
> log return')
錯誤: 意外符號 in "log return"

閱讀全文

與r軟體預測股票數據相關的資料

熱點內容
股票盈利嗎 瀏覽:810
光牛科技股票 瀏覽:867
東方航空最新股票價格 瀏覽:760
東北證券股票好嗎 瀏覽:503
股票籌碼指標應用 瀏覽:80
銀行卡被凍結影響股票賬戶嗎 瀏覽:906
萬科a股票走勢預測 瀏覽:717
浙江龍盛股票行情走勢 瀏覽:995
中信證券股票軟體快捷鍵 瀏覽:924
股票的錢是不是第二天才能轉出到銀行 瀏覽:658
臻迪科技股票代碼 瀏覽:171
股票資金流入流出怎麼看的 瀏覽:35
交通銀行股票送配 瀏覽:18
銀億股做股票重組 瀏覽:37
股票20個漲停怎麼計算 瀏覽:753
中國綠島科技股票行情 瀏覽:772
A股鐵血科技股票 瀏覽:694
中國造軍艦的股票代碼 瀏覽:543
千禾股票能長期持有嗎 瀏覽:97
公司股票一直跌對公司有什麼影響嗎 瀏覽:631