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

热点内容
st航通股票退市 浏览:938
中国建筑股票和中国中铁股票 浏览:142
光科技股票 浏览:988
tcl科技股票股票走势 浏览:954
股票上午几点开始时间 浏览:811
中国股票好挣钱吗 浏览:566
股票信用资金账户吗 浏览:732
股票退市为什么跌那么多 浏览:405
重庆钢铁股票行情走势 浏览:282
怎么筛选出优质银行股票 浏览:785
手机股票全景APP哪里有 浏览:491
股票报业绩增长后市 浏览:932
中国绿岛科技的股票行情 浏览:615
高科技股票2019 浏览:819
中国区域链股票 浏览:201
中盈集团控股股票走势 浏览:430
海通证券有哪些股票 浏览:154
股票融资条件找大牛证券 浏览:494
股票交易时间只去领航官网 浏览:411
大豪科技股票历史行情中心 浏览:778