导航:首页 > 数据行情 > 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 浏览:364
可以条件搜索股票的搜索引擎 浏览:736
新三板企业退市后股票怎么办 浏览:59
用什么软件开通股票 浏览:376
刚买股票就重组 浏览:201
科创板股票在信用账户集中度 浏览:116
布拉德斯科银行股票成交额 浏览:949
公司开通股票账户意义 浏览:466
卖股票有信息吗 浏览:278
股票数据如何用易语言写指标公式 浏览:902
javaweb股票走势图 浏览:4
股票怎么看主力买进卖出 浏览:324
股票超大资金单位是多少钱 浏览:497
中小盘科技股票 浏览:210
股票怎么合并账户 浏览:81
招商证券股票价格最低 浏览:410
货币政策会影响哪些股票 浏览:701
股票中签账户余额负负数 浏览:35
涨停的股票买不进去吗 浏览:757
多股票账户登录软件 浏览:676