Questions tagged [variable]
Very unclear, please avoid and find a more specific tag
121 questions
-2 votes
1 answer
124 views
Trying to understand random variables using the function notation f(x) = y [duplicate]
Problem I am trying to build an intuitive understanding of random variables by expressing them in the form of a function: f(x) = y. I know this isn't the conventional way of expressing a random ...
3 votes
8 answers
1k views
Is there a formal threshold for when a variable is considered 'random' in statistics? What is it?
Problem I’ve been studying the concept of a random variable, and I have come up with this understanding of what a random variable is: “A random variable is a variable whose values are not known nor ...
0 votes
0 answers
61 views
Combined variable in multiple logistics regression?
Good morning, I would like to run a multiple logistic regression using a combined variable. I have two categorical variables, A (Yes/No) and B (Yes/No). Can I create a new variable, C, to use in the ...
6 votes
4 answers
191 views
Treating age as continuous or groups
I want to do data analysis to assess the effect of age and sex on current smoking. The age variable is as follows: ...
2 votes
0 answers
126 views
How to scale circular variables [closed]
I routinely scale non-circular variables using methods you can see here. If I use the same methods with circular data, the cutoff creates issues, such as huge "jumps" in the data depending ...
0 votes
0 answers
43 views
Given variable A and B containing data of lemma sentiments, what is the correct term for the variable containing average of var A and var B?
I have a data visualization, showing the sentiment of two lemmas "гей" (var a) and "трансгендер" (var b) in a news corpus throughout the year. Here is the dataframe sample of my ...
0 votes
0 answers
22 views
Dependent variable as a ratio [duplicate]
I have a dependent variable that is a ratio of how many investments in a year were made in a certain industry. So e.g. the firm made 4 investments and two of those in the technology sector which would ...
0 votes
0 answers
63 views
Anova continuous predictor categorical outcome variable
I am trying to find the effect of blood pH values(continuous variable) in three groups of patients (categorical data) with different neurological outcomes. Is it correct to use one way ANOVA test here....
3 votes
1 answer
493 views
Can I change values in data from yes and no to binary
I have a dataset that I want to perform a regression on. However, some of the columns are not in numerical form. For example, the extra classes column. What I ...
1 vote
0 answers
116 views
How to produce a p-value for each category in a chi-square test [closed]
Cross tables are used to produce differences between two groups in the chi-square test. For example, if we look at the differences in age groups between the two groups (such as the group A and the ...
1 vote
0 answers
77 views
Suggest a reasonable approach to combine the following variables into a single vector
I have 9 variables, namely BMI, waist-to-hip ratio (WHR), healthy-diet (HD: a score of 0 to 4, close to 4 indicates healthy), waist circumference (WC), neuroticism score (NS), body fat percentage (BF),...
1 vote
0 answers
34 views
Managing Daily Quotas with Complex Equation for Resource Allocation
I have a complex resource allocation problem where I need to manage specific quantities while adhering to a daily quota of 3000 tonnes. The allocation is based on various variables, and I'm looking ...
2 votes
1 answer
81 views
Is it possible to use a variable that is a dependent variable in one model as an independent variable in another model at the same time?
Let's say you have a dataset with variables A,B,C,D,E, and you want to build two model to predict D,E. In this case, can we use A,B,C in one model to predict D and A,B,D as dependent variables in ...
3 votes
3 answers
492 views
An independent variable that is correlated with another variable in a regression model
I'm doing a regression analysis to understand the relationship between disease severity (Severity) and viral load (VL). The <...
1 vote
0 answers
61 views
If X is positively correlated with Y and Y is positively correlated with Z, it is still possible for Z to be negatively correlated with X? [duplicate]
This is not assuming a perfect correlation between variables. I believe that the answer is yes as long as r<1.0. (r = Pearson product-moment correlation coefficient.) Bonus: if the question is ...