R generate random vectors from multivariate distributions [closed] - r

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I want to generate random points of uniform density over the unit ball [-1,1]^d in R.
Are there any R packages which offer this functionality?
I am sure i can do this myself by extending this answer: https://math.stackexchange.com/a/87238/250498 to d dimensions.
But i want to know if there is any function or package in R that already does this.
It would be useful if there is a package which can generate standard multivariate distributions instead of me having to sample them myself using rejection sampling or other techniques.

Related

In R, is there a fast way to simulation N binary variables with a common correlation? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I would like to simulate in R, N Bernoulli/Binary random variables with a prescribed correlation. I have been using the package (MultiOrd) with the function
generate.binary.
However, it is too slow. Is there a computationally fast way to do this in existing packages? Thanks.

Group-based trajectory modelling in R [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 9 months ago.
Improve this question
I've been looking for a way to conduct group-based trajectory modeling in R with no avail. Something along the lines of what PROC TRAJ (http://www.andrew.cmu.edu/user/bjones/index.htm) accomplishes in SAS. Does anyone know of a similar package in R?
My outcome of interest (the model input) is categorical so i need something that can handle that.
The only package I've been able to find for this in R is crimCV. Here it is on Cran, and here is a working paper by the authors of the package on how it's done. I have not yet investigated this myself (and it seems like it hasn't been updated for years), but this page describes using it to fit a set of trajectories.

Penalized gamma regression in R [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am aware of the http://cran.r-project.org/web/packages/glmnet/index.html and http://cran.r-project.org/web/packages/penalized/index.html packages, but neither of them seems to support Gamma GLMs.
I'd like to utilize elastic net for gamma GLMs in R, what is the easiest way to do it?
(meta: also debating whether this should go on Cross Validated for better responses?)
You can use the HDtweedie package. Gamma is a special case of the Tweedie distribution with p = 2. It's a relatively new package, so expect some teething problems.

Combining different machine learning algorithms with boosting in R [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there package for R to boost different algorithms? For example Random Forest and neural networks. As I understand, packages ada and gbm can only boost Decision Trees.
Thank you.
take a look at the packages
caret http://cran.r-project.org/web/packages/caret/index.html
C50 http://cran.r-project.org/web/packages/C50/index.html
GAMBoost http://cran.r-project.org/web/packages/GAMBoost/index.html
mboost http://cran.r-project.org/web/packages/mboost/index.html

knn density estimation R [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there any function/package to perform k-Nearest Neighbor based density estimation in R?
class package: function knn
ipred package: function ipredknn
This search on Baron's Site brings up 29 hits.
And the Multivariate Task View has two sections on classification, and has links to a few packages that do knn and related tasks.
I haven't used it, but the the kknn package might help.
You might also look at class and knncat for classification using k-nearest neighbor functions.

Resources