導航:首頁 > 數據行情 > 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軟體預測股票數據相關的資料

熱點內容
我的投資股票的影響因素 瀏覽:234
股票可以提前多少時間委託 瀏覽:415
寶明科技股票最高價位 瀏覽:560
股票開戶還有資金卡嗎 瀏覽:38
股票畫線gp指標咋用 瀏覽:801
深圳股票st要開通許可權嗎 瀏覽:290
中國智能龍頭股票有哪些 瀏覽:564
不可能退市的股票 瀏覽:607
先健科技股票今天 瀏覽:891
股票交易軟體電腦端可以2台電腦登陸嗎 瀏覽:200
用excel做股票軟體 瀏覽:270
貝因美股票會退市麽 瀏覽:351
怎麼觀察股票主力進場 瀏覽:12
怎麼判斷股票長期大底 瀏覽:167
香港證券法操作股票 瀏覽:989
內地居民開通香港股票賬戶 瀏覽:438
貴陽銀行股票持股五萬以上 瀏覽:407
華商通義實業銀行股票 瀏覽:399
python行業股票pe概念 瀏覽:876
股票債券計算題 瀏覽:681