The code tag has no wiki summary.
0
votes
3answers
175 views
Distribution of execution time for benchmarking?
I'd like to compare the execution speed of two different methods (say foo and bar in some language like Ruby). I wish I was more ...
0
votes
0answers
32 views
Simplfying summary statistic output stratified by a categorical variable in R [migrated]
Program being used
I am using the statistical program R to analyze some data and have what is likely a fairly simple question.
Background to the problem
I have a variable full of numeric values ...
-1
votes
1answer
44 views
Methods For Estimating Trend in R [closed]
Do you know how i can get a code for estimating trend by Mitcherlich and logistic method in R?
0
votes
1answer
34 views
GSVM-RU Implementation
Are there any implementations (free or otherwise) of GSVM-RU (granular support vector machines - repetitive under-sampling) as described by SVMs Modeling for Highly Imbalanced Classification ?
0
votes
0answers
11 views
copying first 3 columns from different worksheets to single files in Excel using VBA code [closed]
Im' a total noob when it comes to visual basic. I have a bunch of datasets with always the same worksheets.
Now I want to make a different file for each worksheet. I found some code that does just ...
0
votes
0answers
72 views
ARMA parameter estimation WITH CONSTRAINT
Anybody know how to estimate arma parameters in R with an additional constraint that the parameter estimates are positive (NEED NOT SUM TO ONE)?
I used arma(... ) in R, but had to give up on that as ...
5
votes
1answer
327 views
EM algorithm R code on Cox PH model with frailty
Let say I have a 'kidney catheter' data set. Data are about the recurrence times to infection, at the point of insertion of the catheter, for kidney patients using portable dialysis equipment. ...
0
votes
1answer
53 views
Do post- and pre-incremental operators exist in R? [closed]
Do pre and postincremental operators exist in R, allowing such syntax as ++foo or foo++ and perhaps something like ...
0
votes
0answers
91 views
Code for performing Dutilleul modified t-test?
I am comparing two variables that are spatially autocorrelated. I want to do a paired t-test and the autocorrelation suggests that n-2 degrees of freedom cannot be used. Is it possible to perform ...
8
votes
3answers
248 views
Is there a standard technique to debug MCMC programs?
Debugging MCMC programs is notoriously difficult. The difficulty arises because of several issues some of which are:
(a) Cyclic nature of the algorithm
We iteratively draw parameters conditional on ...
1
vote
0answers
318 views
R versus R Studio output differences
I ran the same code in R and in R-studio, but got two different results. Does anybody know why this is occurring, and if there is a fix for this? If there is no remedy, which is the "correct" program ...
3
votes
1answer
129 views
Testing an implementation of Bayes Factor code
How would one go about testing an implementation of a Bayes Factor calculation? The analogue in Frequentist hypothesis testing is fairly straightforward: generate data according to the null ...
10
votes
6answers
4k views
Best PCA Algorithm For Huge Number of Features?
I previously asked this on StackOverflow, but it seems like it might be more appropriate here, given that it didn't get any answers on SO. It's kind of at the intersection between statistics and ...
1
vote
1answer
1k views
Where can I find C++ code samples for HMM (hidden Markov model) as it relates to gesture recognition?
Any help would be greatly appreciated.
3
votes
1answer
69 views
Statistics for benchmarking code
My application has a factory class which has modular elements registered to it. A run method is called on the factory class which subsequently executes the run methods on the modules.
I am using ...
19
votes
4answers
410 views
As a reviewer, can I justify requesting data and code be made available even if the journal does not?
As science must be reproducible, by definition, there is increasing recognition that data and code are an essential component of the reproduciblity, as discussed by the Yale Roundtable for data and ...
1
vote
1answer
1k views
How do I run a two-part model of health care expenditures in Stata?
Does anyone have Stata code they could share with me so that I can run a two-part model to look at health care expenditures? The first part of the model will determine whether or not an individual had ...
7
votes
3answers
819 views
How should one define the sample variance for scalar input?
I was horrified to find recently that Matlab returns $0$ for the sample variance of a scalar input:
...
6
votes
2answers
495 views
Computing the cumulative distribution of max drawdown of random walk with drift
I am interested in the distribution of the maximum drawdown of a random walk: Let $X_0 = 0, X_{i+1} = X_i + Y_{i+1}$ where $Y_i \sim \mathcal{N}(\mu,1)$. The maximum drawdown after $n$ periods is ...
17
votes
1answer
401 views
Have I computed these likelihood ratios correctly?
I'm the author of the ez package for R, and I'm working on an update to include automatic computation of likelihood ratios (LRs) in the output of ANOVAs. The idea is to provide a LR for each effect ...
2
votes
2answers
449 views
Testing implementation of Anderson-Darling test for uniform RV
I am trying to write unit tests for a whole mess of statistics code. Some of the unit tests take the form: generate a sample following a null hypothesis, use code to get a p-value under that null, ...
4
votes
5answers
416 views
Where can I find useful R tutorials with various implementations?
I'm using R and the manuals on the R site are really informative. However, I'd like to see some more examples and implementations with R which can help me develop my knowledge faster. Any suggestions?
...