Displaying 6 results from an estimated 6 matches for "checkdata".
Did you mean:
check_data
2011 Jul 17
1
FOMULATING TIME SERIES DATA FROM DATA FRAME
...######################################################?
reguire(zoo)
require(PerformanceAnalytics)
reguire(xts)
?
year<- c(1991-12-30, 1992-12-30, 1993-12-30, 1994-12-30)
R1 <- c(12, 9, 8, 13)
R2 <- c(5,2,9, 13)
d? <- data.frame(cbind(year, R1,R2))
?
d<- zoo(d,year)?
VaR(d)
#Error in checkData(R, method = "xts", ...)
?
#When I use
d <- as.xts(d,order.by =year, frequency = 1)
?
#Error in xts(coredata(x), order.by = order.by, frequency = frequency,? :
?# order.by requires an appropriate time-based object
Peter Maclean
Department of Economics
UDSM
2012 Jan 19
1
ctree question
...e works fine. Orig data was my training data. I now have a test
data file (testdata), and would like to run the testdata through the above
tree to see predictions. I tried using the following function
>predict(test.ct,newdata=testdata)
but I get the following error:
Error in checkData(oldData, RET) :
Levels in factors of new data do not match original data
I've looked at the testdata file closely and it does not appear to contain
any levels of factors that were not in the original. What might I be doing
incorrectly, and how can i use the tree that was gen...
2013 Jan 24
1
Error with Expected Shortfall function, ES.
ES function gives the below error.
> ES(sim, p=.95, method=c("modified"),portfolio_method=c("component"),
> weights=w1)
/Error in checkData(R, method = "xts", ...) : The data cannot be converted
into a time series. If you are trying to pass in names from a data object
with one column, you should use the form 'data[rows, columns, drop =
FALSE]'. Rownames should have standard date formats, such as '1985-03-15'...
2012 Jan 11
1
R problem: unable to read data in the xls-format in the PerformAnalytics package
...lem: I am unable to read data in the xls-format in the PerformAnalytics
package.
While it works well for several commands, e.g.
t(table.Stats(msci_ret))
it does not work for other
commands, e.g.
x
<- msci_ret[, c("CH"), drop = FALSE]
table.Drawdowns(x)
The error code is:
Error in checkData(R) :
The data cannot be
converted into a time series. If you are trying to pass in names from a data object with one
column, you should use the form 'data[rows, columns, drop = FALSE]'. Rownames should have standard date formats, such
as '1985-03-15'.
>
2) I guess it is...
2012 Dec 07
0
Conditional inference forest error: levels in factors do not match
...Listed~
HabMode,controls=cforest_unbiased(ntree=500), data=oc.complete)
#use predict function for subset of data
#this works correctly
predict(oc_listed.fit1,newdata=oc.complete[1:10,])
#use predict on new set of data
predict(oc_listed.fit1,newdata=DD_NOT)
#produces this error message
#Error in checkData(oldData, RET) :
#Levels in factors of new data do not match original data
#We can show that all of the levels match
table(DD_NOT$ORD %in% oc.complete$ORD)
#same check
sum(!levels(DD_NOT$ORD) %in% levels(oc.complete$ORD))
#equals 0, all levels are the same.
#Then why does it fail?
Thanks,
A...
2011 Feb 07
5
"Where" command in ctree (party)
...odel based on different cases (learning
sample).
I tried the where command with the following syntax:
> where(tree, newdata=data2)
expecting to get terminal nodes of data2 cases based on rules of tree model
(data1 as learning sample). However it returned the following error message:
Error in checkData(oldData, RET) :
Classes of new data do not match original data
Party documentation states that I can use this command both for learning
sample (newdata=NULL) or new observations.
What am I doing wrong?
Best wishes
Joao Daniel
--
View this message in context: http://r.789695.n4.nabble.com/Wh...