Questions tagged [binary-data]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Very low values of explained variance for the first Axes from PCoA

I am comparing different sites based on their floristic composition in R. Therefore, I have created a huge community datamatrix (presence/absence data) from 53 sites including over 1000 species. To ...
1
vote
0answers
10 views

What correlation coefficient should I compute if I have a dichotomous variable and an ordinal variable with tied ranks? [duplicate]

I am not sure if I will compute the rank-biserial correlation coefficient since the formula assumes that there are no tied ranks. To provide further context, here is my data: Note: The dichotomous ...
2
votes
0answers
48 views

Logistic Regression with Newton's method

Consider the prediction of a binary value $G$ on the basis of a quantitative predictor $X_1$. I use a linear logistic regression (without intercept) for predictions. I want to know if I have formed ...
0
votes
0answers
17 views

How can compare suggestion models with different performances?

I have 4 class binary classification models. That models identify which class a particular students is suitable for. For example, we have user 1 and 4 classes ...
0
votes
0answers
7 views

STATA: Conceptual Question about Pairwise Correlations and Linear Regression with Dummy Variables

I'd like to seek some guidance from this forum on the usage of dummy variables in pairwise correlations and linear regression. I'm fairly new to this concept. Appreciate your help in advance! Context: ...
3
votes
2answers
47 views

Testing for equal proportions when sample sizes are very small

Suppose I observe binary data for two samples (hopefully the notation below is obvious) and I wish to test the hypotheses: $$H_0: p_1 = p_2$$ $$H_A: p_1 \neq p_2$$ I know there is a $z$-test for doing ...
0
votes
0answers
12 views

Extracting Single Conditional Distribution from Binary Linear Gaussian Model?

I'm not sure how to best phrase the title, so if anyone has suggestions, I welcome them. I have a sequence of binary latent variables $z_1, z_2, ...$ and parameters $\phi_1, \phi_2, ...$ with $\phi_k \...
2
votes
1answer
50 views

Cluster analysis with interchangeable, binary classes

The Data: I have the results of an experiment where participants were given 30 stimuli and asked to sort them into two groups. The participants were asked to sort them into the two groups without any ...
0
votes
0answers
16 views

What should be the class imbalance ratio?

I'm working with a really imbalanced binary classification dataset so I decided to use SMOTE for only on the train data. Class rates were 95% -5% before SMOTE and 75-25% after SMOTE. In other words, I ...
0
votes
0answers
6 views

Dichotomous independent variable on power-law distribution

Background For my master thesis in Public Administration, I'm working on a model to estimate the effect of knowledge claims on retweet count. I'm looking at a data set of 500,000 tweets of EU ...
0
votes
0answers
13 views

Mediation with binary X, binary Y, and continuous M

I am looking to see how a continuous variable (M) would mediate the relationship between a binary X variable and a binary Y variable. Would a transitional mediation test be appropriate? If not what is ...
0
votes
0answers
29 views

Is balancing class data for imbalanced problems helpful or just folklore when considering thresholds?

(In the context of predictive models) Caveat: I'm aware that imbalanced data questions are a dead horse, but I haven't found an answer to this flavor of it directly. When working with highly ...
0
votes
0answers
22 views

Multiple categorical variables transform to dummy

I'm developing a linear regression model that contains multiple categorical explanatory variables (e.g., cities, marital status), including other binary and continous variables. The output is 0/1 ...
0
votes
0answers
19 views

Binomial regression, continuous predictor. Glm() function in R

I am trying to determine to what extent the age ( continuous variable) affect the outcome of the patient ( outcome - dead/recovered). So, I tried to build a model in R using glm(family = "...
1
vote
0answers
29 views

binary logistic regression - Model Fit Problem

I have a run a binary logistic regression to identify associations between three categorical variables (gender, work sector, workplace region/location) and violence victimisation at work. Sample size= ...
0
votes
0answers
11 views

Standard error of a logit [duplicate]

Say, we define the logit model as follows: $$ P[y=1]=\Lambda = \frac{1}{1+e^{-x'\beta}} $$ Where $x$ is a vector with the attributes of an observation and $\beta$ a vector of the parameters attached ...
0
votes
1answer
25 views

Which statistical test is appropriate?

I have a dataset of two groups, group A and group B, from the same species but different subspecies, each group consisting of 500 members. I've done a study wherein I added members of group A to ...
0
votes
0answers
24 views

How can I address the autocorrelation in my glmm?

I am looking at effect of diet on breeding success of birds. For 8 years, I have breeding success (number of chicks fledged / number of eggs laid), as well as Frequency of Occurrence (FO) of Fish in ...
1
vote
0answers
24 views

Probability of a binary outcome

I am a little confused with a simple problem. Say I have an event that can either occur or not occur everyday. The underlying distribution of occurrence or non-occurrence is unknown, there is no ...
1
vote
1answer
13 views

Comparing two dichotomous variables (non-paired)

I would like to compare two dichotomous variables: pass/fail for a statistics test before statistics class (pre-test) pass/fail for a statistics test after statistics class (post-test) I only have ...
0
votes
0answers
13 views

Plotting Error in Log Odds Space

I'm having trouble understanding what one should do for plotting error with binomial data. I have a yes/no answer from 183 participants over a range of x values (say -1 : 1 at .1 intervals). In ...
0
votes
0answers
13 views

Correlation between dichotomous and continuous variable with non-parametric distribution small data set

I am trying to solve a personal health problem using statistics, which is why I'm posting as a guest. My symptoms are too variable to notice trends myself, doctors are out of ideas, and it's been 3 ...
0
votes
1answer
22 views

Why is the point biserial correlation of numeric variable and its binary, binned self not 1.0?

Say I have a continuous variable that for some reason needs to be binned into a dichotomous variable. In such a case, I pick some cutoff point and encode everything above that cutoff as 1 and ...
0
votes
1answer
27 views

What's a good way to calculate agreement between examiners when the measure is binary?

I want to assess ability to identify tumor types in humans vs. a computers. There are 7 tumor types. I am interested in calculating agreement between the human examiners but I am not sure the best way ...
0
votes
1answer
77 views

Must interacting dichotomous categorical predictors be treated as factors?

If examining the main effects of dichotomous categorical variables, the levels of which are binary and absolute (present/absent), must they be treated as factors rather than numerics? Would the answer ...
1
vote
1answer
20 views

Advice on modelling longitudinal change of dichotomous dependant variables within clustered data

I'm working with a data set from a multi-school data set and trying to model the relationship between a dichotomous Sleep Status (whether or not they were getting 8 or more hours of sleep per night) ...
0
votes
0answers
9 views

Why is it permissible to use normalized continuous variables alongside binary variables in models?

Since binary variables are 0 or 1 to begin with, it doesn't make sense to normalize them. On the other hand, we normalize continuous variables which usually results in values greater than 0 and less ...
0
votes
0answers
13 views

Choosing a Clustering Method Using Similarity Matrix of Binary Data (in SPSS via Hierarchical: Open to SAS, R, or Others)

I am working on a (somewhat exploratory) clustering of linguistic attributes for data we are working with. In an experiment, we designed prompts to elicit responses, hoping to prompt some sarcasm use. ...
1
vote
0answers
18 views

LASSO grouped variables and explainability of the model

I am trying to build a binary regression model and I will be using LASSO. The dataset is the credit card dataset where the binary response is defaulted and not defaulted. Now, I know that LASSO will ...
0
votes
1answer
34 views

Probit with fixed effects

Could anyone elaborate on why fixed effects (or within estimator) will not work in the probit setting? Thanks in advance.
2
votes
1answer
87 views

How to plot binary vs. categorical (nominal) data? [duplicate]

I am building a machine learning model for a binary classification task in Python/ Jupyter Notebook. I am currently in the "Exploratory data analysis" phase and try to create multiple plots/ ...
1
vote
0answers
17 views

What statistical test is for two tables consisting same set of IDs each of which has a group of dichotomous measures?

What statistical test is for two tables consisting same set of IDs each of which has a group of dichotomous measures? I have two tables as below: Table A ...
0
votes
0answers
9 views

Is it feasible to interpret dichotomous questions into a 5-point Likert scale?

I have a research survey that is consisted of only dichotomous survey questions. I've thought of trying to interpret them as percentages, but in doing so, I've realized that I'm going to need a scale ...
0
votes
0answers
20 views

MLE and binary variables

Suppose $z$ and $y$ are discrete random variables taking values 0 or 1. The distribution of $z$ and $y$ is given by $$P\{z=1\}=\alpha$$ $$P\{y=1|x\}=\frac{e^{\gamma x}}{1+e^{\gamma x}}\\ z=0,1$$ Here $...
0
votes
0answers
3 views

Statistical Testing of Census Aggregate Data and Binary Data

I am trying to run some statistical tests on data from the U.S. Census, which only provides aggregate numbers (or totals) of a certain number of people in a category. I am trying to find out which ...
2
votes
1answer
35 views

Can I use a binary logistic regression for repeated measures data?

For this particular study, I had 3 monkeys complete 3 tasks, each task has a binary outcome (Win/Lose). A task is considered complete when they reach a criterion of 85% accuracy in their most recent ...
0
votes
0answers
32 views

how to make validation accuracy and validation loss more stable?

I have been working on a project lately and this project is about detecting dimples in SEM images of ductile fractures, e.g.: and what I mean by detecting dimples is detecting the border of each ...
0
votes
0answers
13 views

Is it possible to run Confirmatory factor analysis with gsem on STATA with binary outcomes?

So far I have only seen an exmaple that involve counted number as the outcome, which has "poisson" as one of its option. My outcome variables are almost all binary, so I tried with "...
0
votes
1answer
22 views

Proof of B1by OLS in a multiple regression model with dummies

Given the model Y=B0 + B1C + B2A + e, where C=(0,1) and A=(0,1), how can I derive the formula for the estimator of B1 by OLS? I already know the formula for the general case in which A and C are not ...
0
votes
1answer
21 views

SEM model with binary outcome using LISREL

I am developing a SEM model for factors associated with dental caries. It has 48 observed variables and 13 latent variables. I have both independent and dependent latent variables in the model. ...
0
votes
0answers
12 views

Nadaraya-Watson regression alternative for binary outcome

I am looking for pointers as to what would be the non-parametric equivalent of Nadaraya-Watson regression when modelling a binary outcome. I have been googling and ended up with Generalized Additive ...
0
votes
0answers
17 views

Means-as-outcomes Regression Model with latent variable predictors at Level 2

I plan to estimate a structural equation model with several latent variables (e.g. importance of comfort when choosing a car) as predictors of a dependent variable which is a proportion: number of ...
1
vote
1answer
30 views

Theoretical variance of the (binary) accuracy score for a random guesser

Suppose we want to compute accuracy for a binary classifier (assuming balanced classes): Acc = (TP+TN)/N Where N = TP + TN + FP + FN. For the case of a pure random guesser where each (actual) positive ...
2
votes
1answer
40 views

Am I misunderstanding Zou's method for computing relative risk for binary outcomes using Poisson regression?

It seems that relative risk estimation using Poisson regression is a popular approach in epidemiology, with a couple of papers I have recently looked at (for example [3] and many others like it) ...
0
votes
0answers
46 views

Outliers in binary columns

Is it possible to exist outliers in binary columns? At first I thought it was impossible based on this Outlier detection for a univariate categorical variable? , assuming that binary columns also mean ...
0
votes
1answer
16 views

How can precision be less than one in Leave-One-Subject-Out binary classification if each subject contains only one class

Say I'm trying to classify a medical condition. Theres only two classes: Sick and Healthy. I build a model and I can't split the data because I don't want data from the same patient being in training ...
0
votes
0answers
13 views

How to construct a GAM for 1/0 response of whale behaviours with environmental variables?

Firstly, I am novice at GAM construction, as I am sure will become clear very quickly! I have 2 questions related to what I have come across. I want to use a GAM in MGCV to figure which temporal, ...
0
votes
0answers
10 views

How to select dichotomous variables?

I have a data set of 57 dichotomous items that constitute a scale for measuring a particular condition. I also have another dichotomous variable of the condition itself. I would like to do some factor ...
3
votes
1answer
121 views

Information loss

Let's imagine we have some binary random variable $Y$ and some other continuous variable $X\in\mathbb{R}$ and we have some sample of size $n$. Suppose we want to determine the relationship between $Y$ ...
0
votes
0answers
19 views

Clustered pre-post analysis dichotomous variables in SPSS

I’m not entirely sure how to analyze data we have from the following study: We trained three teams of health care professionals of three different palliative care wards We would like to analyze the ...

1
2 3 4 5
24