# Tagged Questions

The tag has no wiki summary.

16 views

### How to find the leaders in order to apply The Meggitt algorithm [on hold]

For example, a generator polynomial g(x) generates a cyclic code with length n=15, dimension k=7 and minimum distance d=5. (p=2) -> p = |(d-1)/2| degree 14 -> r=n-1=15-1 weight <= 2 -> weight ...
9 views

### Multi-core versions of vapply and ddply? [migrated]

I've got such a code: ...
33 views

### Running multiple for loops for multinomial regression in R

I'm using the ANES dataset, which is a repeated cross-sectional study of public opinion and knowledge. I am trying to predict knowledge by individual level characteristics. The data is organized by ...
31 views

### How does one determine what ARL0 should be used on CPM package to test for Structural Change

i'm trying to find multiple break point by using processStream from CPM package on R can ...
22 views

### Multiple definitions of node openbugs

I have some problem with this code in Openbugs. The model is sintatically correct and data are loaded, but when I compile, software output is "multiple definitions of node fn[1]". I don't know how to ...
397 views

### Reverse scoring when question is stated in a negative fashion

In my survey, I had a question that asked respondents why they did NOT engage in a particular behavior (x). Some of the answers were stated in a positive way, such as "because of age" while some were ...
42 views

### Examples of marginalization on non-trivial Bayesian networks

What is a good resource for finding out how to code integration (marginalization) on a non-trivial Bayesian network? I am interested in this equation in particular:  p(r_{i+1},~v_{i+1},~k | y_{\leq ...
43 views

### How should I code these two variables?

I have two independent variables: "vaccination status" and "antibody titer assessment". Vaccination is coded as 0 and 1. The other variable is supposed to explain if the person has checked that ...
62 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?
100 views

### ARMA parameter estimation with constraints

Does anyone 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() ...
73 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 ?
432 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. ...
450 views

### R versus R Studio output differences [closed]

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 ...
148 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 ...
204 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 ...
2k 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.
449 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 ...
75 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 ...
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 ...
937 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: ...
417 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 ...
518 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 ...
5k 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 ...
478 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, ...