导航:首页 > 数据行情 > 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软件预测股票数据相关的资料

热点内容
股票每股净资产是股票什么价值 浏览:17
长期做鸵鸟股票 浏览:802
没被st的股票退市 浏览:678
同花顺股票分析软件下载 浏览:149
2017股票停牌时间限制 浏览:166
股票资金大量流入代表什么 浏览:269
st敦煌股票 浏览:262
中国建设银行股票能入手吗 浏览:88
网上股票账户开户没推荐人 浏览:833
2021可长期持有的股票 浏览:806
宝丰科技股票 浏览:59
已连续涨停6天的股票 浏览:311
香港股票期权数量 浏览:193
股票价值会影响所有者权益吗 浏览:880
股票盈利吗 浏览:812
光牛科技股票 浏览:870
东方航空最新股票价格 浏览:762
东北证券股票好吗 浏览:505
股票筹码指标应用 浏览:82
银行卡被冻结影响股票账户吗 浏览:908