Questions tagged [binary-data]

A binary variable takes one of two values, typically coded as "0" and "1".

Filter by
Sorted by
Tagged with
3
votes
3answers
285 views

Can a categorical variable be divided by a numerical variable?

I am reading P.R. Rosenbaum, Model-based direct adjustment, Journal of the American Statistical Association, 1987 (82), pp. 387-394. However, there is one equation, which I can't understand. $$ d = \...
6
votes
3answers
5k views

Inverse probability of treatment weighted (IPTW) estimator for a binary outcome

Recently, there are several estimators have been proposed to estimate the average treatment effect (ATE) in observation studies, such as IPTW, doubly-robust estimator, etc. It fully makes senses to me ...
2
votes
1answer
366 views

Discretize frequency of words that follow zipfian distribution

How could I discretize the frequency of words found in a corpus that follow a zipfian distribution? Are there standard methods? It should create bins of exponential-increasing size. My goal is to ...
3
votes
1answer
2k views

Canonical correlation analysis with continuous and binary data

I came across interesting article on application of canonical correlation analysis (CCA). Authors apply classical CCA on a mixed variables dataset (both independent and dependent sets include ...
8
votes
1answer
199 views

How can I compare my model to a technically invalid model?

I've created nice little nonlinear model relating survival probability to length in salmon. I fit it assuming binomial errors and minimizing the negative log likelihood. I've been asked to compare it ...
59
votes
10answers
19k views

Measuring entropy/ information/ patterns of a 2d binary matrix

I want to measure the entropy/ information density/ pattern-likeness of a two-dimensional binary matrix. Let me show some pictures for clarification: This display should have a rather high entropy: ...
27
votes
7answers
52k views

Why is gender typically coded 0/1 rather than 1/2, for example?

I understand the logic of coding for data analysis. My question below is on the use of a specific code. Is there a reason why gender is often coded as 0 for female and 1 for male? Why is this coding ...
15
votes
3answers
18k views

What is the effect of dichotomising variables?

When dichotomising variables, what information is lost in the process? How does a dichotomisation help in the analyses?
37
votes
1answer
49k views

Doing principal component analysis or factor analysis on binary data

I have a dataset with a large number of Yes/No responses. Can I use principal components (PCA) or any other data reduction analyses (such as factor analysis) for this type of data? Please advise how I ...
4
votes
1answer
2k views

Local polynomial (linear) regression of binary data — logit transformation?

I got a bit confused about how to fit a local polynomial to binary outcomes if I would rather approximate the underlying index (within a link function) instead. (Basically for the same reason why ...
13
votes
4answers
7k views

Forecasting binary time series

I have a binary time series with 1 when the car is not moving, and 0 when the car is moving. I want to make a forecast for a time horizon up to 36 hours ahead and for each hour. My first approach ...
3
votes
1answer
4k views

How to perform regression on a nominal variable using many binary explanatory variables?

I have a dataset: Response: categorical, 9 levels. 23 predictors: binary, with many 0's. Number of samples: 64. I'm interested to know the dependence of (each level of) the response on predictors. ...
1
vote
1answer
145 views

Proving significantly better performance in binary forecasting

I have two different algorithms that make forecasts for binary events. The observed result can either be 1 or 0 (like "rain" or "no rain"). The algorithms usually give a forecast in the 0.4-0.6 range. ...
7
votes
1answer
609 views

Assessing statistical significance of a rare binary event in time series

I have a univariate time series which is an index of susceptibility to failure, and a binary variable which indicates whether a failure actually occurred in a given time window or not. I want to carry ...
2
votes
1answer
254 views

How to test component failure in a general way?

Let's say I have 100 parts. I sample one part and find it defective. I then sample another five parts and do not find them defective. What statistical procedure would I use that combines this ...
3
votes
1answer
1k views

Analyzing (hierarchical?) clustered pair-matched binary data

We teach supplementary lessons in nearly two dozen local schools, and have two data sets of approximately four hundred records each from pre-post tests given at these schools. Each record contains pre ...
23
votes
3answers
12k views

Generate random correlated data between a binary and a continuous variable

I want to generate two variables. One is binary outcome variable (say success / failure) and the other is age in years. I want age to be positively correlated with success. For example there should be ...
4
votes
2answers
6k views

Assessing and testing inter-rater agreement with kappa statistic on a set of binary and Likert items?

I am trying to calculate inter-rater reliability scores for 10 survey questions (on which there were 2 raters)--seven questions are binary (yes/no), and 3 are Likert-scale questions. Should inter-...
8
votes
1answer
20k views

How to calculate SE for a binary measure, given sample size n and known population mean?

Lets say there is population of measurements X, and 50% of those X = 1, and the the other 50% = 0. Therefore, population mean = 0.5 given a random sample of size n, how do you determine the SE of ...
10
votes
2answers
7k views

Recommended procedure for factor analysis on dichotomous data with R

I have to run a factor analysis on a dataset made up of dichotomous variables (0=yes, 1= no) and I don´t know if I'm on the right track. Using tetrachoric() I ...
1
vote
0answers
1k views

Multiple comparisons with binary data: Hsu's MCB method

Given a factor with a number of levels, say for example, versions of a banner advertisement on a web page, where the measurement of interest is the click through rate (# clicks / # of times banner add ...
4
votes
2answers
12k views

Calculating significance of difference between two binary values on one dataset

Suppose my sample comprises 350 instances. Each instance has two independent binary (pos and neg) evaluations, A and B. If my ...
4
votes
3answers
2k views

Whether to use factor analysis based on binary multiple response data?

I have a survey where I have asked people which type of computer games they enjoy and whether they consider themselves a hardcore gamer. I allowed people to select multiple genres, but now I am unsure ...
10
votes
3answers
8k views

For a classification problem if class variable has unequal distribution which technique we should use?

for eg. if I have a class variable credit scoring with two classes good and bad, where #(good) = 700 and #(bad)= 300. I do not want to shorten my data. which technique I should use? I was using SVM ...
12
votes
3answers
7k views

How can I test whether my clustering of binary data is significant

I'm doing shopping cart analyses my dataset is set of transaction vectors, with the items the products being bought. When applying k-means on the transactions, I will always get some result. A random ...
5
votes
4answers
4k views

Incorporating boolean data into analysis

I have a data set of about 3,000 field observations. The data collected is divided into 20 variables (real numbers), 30 boolean variables, and 10 or so look up variables and one "answer" variable ...

1
20 21 22 23
24