Displaying 5 results from an estimated 5 matches for "baccts".
Did you mean:
accts
2012 Feb 14
1
sequential sum
Dear R users,
I am trying to sum number that exist in another vector up to i, then
increment i and repeat.
Sorry. It's hard to explain but basically I am trying to do the following:
test <- c(1,2,3,4);
test2 <- c(3,5,6,7,2,8,8,4,4);
test3 <- c(10,20,30,40);
tmp <- 0;
for (i in 1:length(test)){
tmp[i] <- sum(test3[which(test[1:i] %in% test2)]);
}
so when i = 1, tmp[i] = 0
2012 Mar 27
1
ignore error getting next result
Dear All,
How do I ignore an error and still getting result of next iteration.
I am trying to do wilcox.test on a loop, when the test fail, I would like to continue doing the next iteration and getting the p-value.
I tried to do tryCatch or try but I cannot retrieve the p-value if the test is not fail.
sample code:
test2=list(numeric(0),c(10,20));
test1=list(c(1),c(1,2,3,4));
for (i in 1:2){
2013 Mar 25
1
error installing RcppClassic
Anyone knows what does this error means? > library(RcppClassic) Error in gzfile(file, "rb") : cannot open the connection I thought I installed the package successfully: > install.packages('RcppClassic') Installing package(s) into ‘C:/Program Files/R/library’ (as ‘lib’ is unspecified) also installing the dependency ‘Rcpp’ trying URL
2013 Mar 28
0
using cvlm to do cross-validation
Hello,
I did a cross-validation using cvlm from DAAG package but wasn't sure how to assess the result. Does this result means my model is a good model?
I understand that the overall ms is the mean of sum of squares. But is 0.0987 a good number? The response (i.e. gailRel5yr) has min,1st Quantile, median, mean and 3rd Quantile, and max as follows: (0.462, 0.628, 0.806, 0.896, 1.000, 2.400) ?
2013 Feb 15
0
CVlim
Can anyone help explain to me why the two codes below have different result? I thought I can use log(time)~. to replace log(time)~dist+climb+timef.I am using CVlm from DAAG package. I think nihills is preloaded with the package. Thanks in advance.
> CVlm(df=nihills, form.lm=formula(log(time)~.),plotit="Observed",m=2)Analysis of Variance Table
Response: log(time) Df Sum Sq