Displaying 3 results from an estimated 3 matches for "bootstrap_result".
Did you mean:
bootstrap_results
2023 Nov 15
2
Cannot calculate confidence intervals NULL
..., y1, method="spearman")
? cor2 <- cor(x2, y2, method="spearman")
?
# Return the difference
? return(cor1 - cor2)
}
?
# Create a data.frame with the data
data <- data.frame(x1, y1, x2, y2)
?
# Use the boot function to apply the bootstrap
set.seed(123) # For reproducibility
bootstrap_results <- boot(data = data, statistic = pearson_diff, R = 1000)
?
# Calculate all the 95% confidence interval
boot.ci(bootstrap_results, type = "all")
###############################################################
?
2023 Nov 15
1
Cannot calculate confidence intervals NULL
...or(x2, y2, method="spearman")
>
> # Return the difference
> return(cor1 - cor2)
> }
>
> # Create a data.frame with the data
> data <- data.frame(x1, y1, x2, y2)
>
> # Use the boot function to apply the bootstrap
> set.seed(123) # For reproducibility
> bootstrap_results <- boot(data = data, statistic = pearson_diff, R = 1000)
>
> # Calculate all the 95% confidence interval
> boot.ci(bootstrap_results, type = "all")
> ###############################################################
>
>
> ____________________________________________...
2010 Nov 30
3
repeat write.table with the same code many times
Dear all,
I am using R version 2.9.2 in Windows.
I would like to output the results of a function I have written to a .txt
file. I know that I can do this by using the code
write.table(boothd(10),"boothd10.txt",sep="\t",append=TRUE) etc. However, I
would like to bootstrap my function 'boothd' several times and get each
vector of results as a new line in my text