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

熱點內容
現金資產佔比股票 瀏覽:94
微信股票資金安全卡怎麼更換 瀏覽:226
百度宇信科技股票 瀏覽:958
股票農業銀行轉賬時間 瀏覽:851
齊家員工股票 瀏覽:811
新三板深圳股票賬戶 瀏覽:695
同花順怎麼查找相似走勢股票 瀏覽:633
口子窖股票最新行情 瀏覽:611
股票賬戶異常監控 瀏覽:492
航新科技股票代碼是多少 瀏覽:696
股票賺錢非常快 瀏覽:610
st股票能場外質押嗎 瀏覽:338
醫葯科技龍頭股票 瀏覽:859
股票自由現金貼現模型 瀏覽:696
雷科防務股票最新行情 瀏覽:958
一個人可以買50萬st股票 瀏覽:20
中國電影股票歷史最高記錄 瀏覽:855
股票被強平會影響徵信嗎 瀏覽:223
新光圓成股票資金 瀏覽:227
滬市股票需要發布業績預告嗎 瀏覽:64