Skip to main content

Questions tagged [variable]

Very unclear, please avoid and find a more specific tag

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 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 ...
pindakazen's user avatar
0 votes
0 answers
14 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 ...
lazer's user avatar
  • 31
0 votes
0 answers
23 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....
user407213's user avatar
3 votes
1 answer
180 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 ...
Charlotte's user avatar
1 vote
0 answers
39 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 ...
橋本悟's user avatar
1 vote
0 answers
42 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),...
Dovini Jayasinghe's user avatar
1 vote
0 answers
9 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 ...
Abdelhak Chana's user avatar
0 votes
0 answers
40 views

Creating Correlation Matrix Tables with multiple variables within one measurement

trying my luck here since no one in my surroundings has worked with SPSS before and I am also clearly a newbie to SPSS and statistics. For my master degree I am researching possible correlations/a ...
Bettina's user avatar
2 votes
1 answer
24 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 ...
jun's user avatar
  • 21
3 votes
3 answers
403 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 <...
Michael's user avatar
  • 33
1 vote
0 answers
45 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 ...
BigMistake's user avatar
0 votes
0 answers
26 views

Manually calculating partial dependence plots rpartscore tree

I am trying to generate partial dependence plots for my rpartscore model but I am not succeeding so far. I have previously tried to use the package dpd but cant make it run with the probability ...
Sofia's user avatar
  • 1
0 votes
0 answers
38 views

Should you assign „0“ to a count variable that is not applicable?

I am designing a retrospective study in the field of oral and mandibular reconstruction. I am struggling with the interdependence of the following two variables and would greatly appreciate any input ...
Philipp's user avatar
1 vote
0 answers
21 views

parameters of a distribution are constant but not a variable? Why [duplicate]

For example, the standard deviation of a normal distribution is a constant? Why is that?
symphony001's user avatar
3 votes
2 answers
1k views

Comparing characteristics of individuals

The data table for my company's salesmen/women commission for FY23 follows. Below, I compare the commission of each age group to know which age group is performing well (which I don't think matters), ...
vs_1604's user avatar
  • 65
1 vote
0 answers
30 views

How one would define dependent and independent variable in a survey? [duplicate]

Following are the definitions of independent variable and dependent variable I found on the internet: <1> In statistical modelling, the dependent variable is studied to see if and how much it ...
vs_1604's user avatar
  • 65
1 vote
1 answer
663 views

Independent Variable vs. Dependent Variable in Statistics

Following are the definitions of independent variable and dependent variable I found on the internet: <1> In statistical modelling, the dependent variable is studied to see if and how much it ...
Vinay Sharma's user avatar
2 votes
1 answer
2k views

One-way Table vs Two-way Table. What’s the difference?

The following is the definition representative of the definitions if you google the difference between the one-way and two-way table: Sometimes we talk about data tables in terms of independent and ...
Vinay Sharma's user avatar
1 vote
0 answers
58 views

Joint PDF, Independence of Random variables [closed]

I can't understand some steps in this example, my question is about the encircled steps in red. How to find these values ($x_1, x_2, x_{11}, x_{21}, x_{22} $), and what is its relation with that of $...
Sanaullah Khan's user avatar
1 vote
0 answers
17 views

How can I reduce correlation between two independents variable?

Edvard, the evaluator in sample B, does not know Richard, the target subject in sample A. However, the two, independently, give the same answer/Likert value (1-5) to 30% of the questionnaire items. It ...
Guest's user avatar
  • 11
0 votes
1 answer
27 views

Interpreting regression and variable set-up

Im working on a quantile regression model where I look at how imports (impi,t) of intermittent electricity (inti,t) such as wind solar from country i in period t impact day ahead prices in Norway in ...
Julian's user avatar
  • 13
0 votes
1 answer
107 views

Is it valid to calculate the difference between two odd ratios within the levels of a categorial variable in an ordinal logistic model?

Supose you have an ordinal logistic model, with a dependent variable with 6 categories, being 6 the highest and 1 the reference. I have one independent categorial variable, that I would like to ...
Mario GS's user avatar
  • 173
4 votes
3 answers
958 views

How to identify variables of a dataset?

I have a dataset of the annual sales of a bakery and I'm confused about how many variables it has. Is it the number of products or the number of years? Can someone help me out?
user avatar
0 votes
2 answers
48 views

Variable selection: Adding a variable to regression model only increases r by 2% - should I leave that variable out?

sorry not the smartest question, tried to google this and search forum, but questions remain. So x1 correlates with y by r=0.8. If I now add x2 and x3 to the model, the whole model correlates with r=0....
CrossVal_Asker's user avatar
1 vote
0 answers
18 views

How do I create a dataset for vacation home bookings? [closed]

My family is renting out a vacation home and I would like to create a dataset in R to calculate statistics on the bookings (for some helpful insights and also for me to practice R). I have a question ...
Sofia's user avatar
  • 11
2 votes
1 answer
62 views

multi variable regression with overlapping category variables in statsmodels

I am working on creating a cost estimate for an order code, which is an order for medical procedures (category variable). I have estimated costs by patient encounter (visit to the doctor). I am ...
Greg May's user avatar
0 votes
0 answers
361 views

Error Correction model and vector error correction model and their error correction terms

(1) What is the difference between these two ina bivariate variable? I know that VECM caters to more than one cointegrating vectors but equation wise what is difference between these two? Both uses ...
Ashley Dela Cruz's user avatar
3 votes
1 answer
194 views

Generating data in the desired correlation structure from the multivariate normal distribution in R

I want to derive 200 variables from the multivariate normal distribution. I will divide these 200 variables into 3 blocks. The 1st block will consist of 40 variables and will be low-moderately ...
Buğra Varol's user avatar
2 votes
2 answers
159 views

Methods for selecting the best variable into the regression model

I have constructed a continuous variable by using two different methods. Now I want to know the variable created under which way is the best and should be included in the model. Some preliminary ...
zjppdozen's user avatar
  • 347
0 votes
0 answers
50 views

Distance is Quantitative continuous, Quantitative continuous on a ratio scale or Quantitative continuous in scale of intervals?

I have sample data and I have one variable which records distance from resident to place of work. I have to chose that this variable is actually of what type. It is Quantitative continuous for sure. ...
Snoke's user avatar
  • 23
0 votes
0 answers
48 views

log transformation with the self-reported health score variables

With self-reported health scores (as a dependent variable) - such as CES-D for depression which typically ranges from 0 to 60, I was wondering whether log-transforming these scores would allow me to ...
HYL's user avatar
  • 377
1 vote
0 answers
40 views

Mediator variable causality

For my master's thesis I want to study the relationship between structural transformation (IV) and subjective well-being (DV). However, income level (GDP) is correlated to both variables. Higher ...
fdewrede's user avatar
0 votes
2 answers
151 views

log log interpretation with independent count variable [duplicate]

Would anyone know how I could interpret the log-log regression with age below? ln (Income) = const + 0.30 ln(Age) + ut I don't understand how it is possible to say that if age increases by 1%, income ...
Pita Fouta's user avatar
1 vote
1 answer
689 views

Do control variables in regression models have to be confounders? [duplicate]

So everything I'm reading on this throws out a different answer. Do control variables in regression models have to be confounders, that affect both the independent and dependent variables? I have an ...
James L's user avatar
  • 61
1 vote
1 answer
625 views

Should I incorporate sex as a control variable or use multi-level modelling?

I'm doing a linear regression model to look at how socio-economic status impacts children's height. My dataset will be survey data for both males and females. To me, it makes sense to control for sex, ...
James L's user avatar
  • 61
2 votes
1 answer
47 views

How to run experiments in such a way to understand the underlying sources of variation?

Suppose I have some outcome variable $Y$ that depends on several factors $F_1, \ldots, F_m$, which I assume to be binary for simplicity. Each time I conduct an experiment on levels of the factors, I ...
user321627's user avatar
  • 4,448
0 votes
0 answers
12 views

How do you "correct" a dependent variable for an independent variable? [duplicate]

How do you "correct" a dependent variable for an independent variable (which shows a correlation with the dependent variable but is not a significant predictor in the model/regression ...
Hannah's user avatar
  • 1
1 vote
1 answer
597 views

One continuous variable and one categorical variable (with four categories)

I have a dataset and want to see whether participants’ happiness ratings were affected by the season they were interviewed in? How do I do that in R since my categorical variable has four levels?
rookieLinguist's user avatar
0 votes
0 answers
15 views

Can I create a numerical variable from the combination of other numerical variables? [duplicate]

I am working with a dataset that contains limnological parameters. This dataset contains turbidity-related measures in different units and consequently different ranges. Is there a way to create a ...
Patricia Nunes's user avatar
0 votes
0 answers
43 views

Is there a way to create a numeric variable from a numeric set of measurements with different ranges?

I am working with a dataset that contains limnological parameters. One of them is turbidity-related measures in different units and consequently different ranges. Is there a way to create a numerical ...
Patricia Nunes's user avatar
3 votes
0 answers
762 views

How to get overall p-value in multinomial regression after MICE on R

I run multinomial regression after multiple imputation in R. This is a GEE multinomial model with a survey design : ...
Gld77's user avatar
  • 31
2 votes
1 answer
57 views

Linear Regression Variable Selection

##Linear Regression Variable Selection Hi I am running a simple single variable linear regression model where covid deaths per 100,000 are my dependent variable and my independent variable is % of ...
Statsnovice69's user avatar
1 vote
0 answers
13 views

Properly set-up indepenent variables for polynomial logistic regression

I would like to conduct an analysis to identify factors that affect whether or not a first purchase was made. In this context, there are three outcomes I want to predict: Did not buy anything Did buy ...
Horstus's user avatar
  • 11
1 vote
1 answer
245 views

Why person-years follow a Poisson ditribution?

While studing poisson distributions, this simple question came to my mind: Poisson distribution are made of variables which only have integer numbers and are always >0 (as an example: number of ...
Claudio Laudani's user avatar
1 vote
0 answers
88 views

How to reduce number of variables for path analyses/SEM?

I'm planning to create a path analysis or SEM model to look at what environmental factors affect how a species is distributed in space. I'm interested in looking at climate, landcover, and a few other ...
canderson156's user avatar
6 votes
2 answers
2k views

Estimate normal distribution from dnorm in R

The function dnorm(x) in R gives you the value of the probability density function in the points x of a certain normal distribution (mean = 0 and SD = 1 by default),...
BN-stats's user avatar
0 votes
2 answers
128 views

How do I enter the time of day and time deltas as variables into a regression model in python? [closed]

I want to predict adherence from the variability in times of day at which medications are taken. However, I can't enter variables which describe this variability in the times of day into the linear ...
Louisa's user avatar
  • 9
5 votes
1 answer
407 views

Can we use fractional regression for a dependent variable that is made of continuous numerator and denominator?

I have a dependent variable that is a ratio, which takes values between 0 and 1. Some 30% of values are 1s. The dependent variable measures the distribution of funds and is calculated as amount of ...
Ken Lee's user avatar
  • 351
0 votes
1 answer
565 views

A variable that affects the dependent variable and is affected by another independent variable

I was analyzing happiness records data. One of the variables was trust in government and I hypothesized that this variable does not have an actual impact on the happiness score. I believe that this ...
Atilla Colak's user avatar
1 vote
0 answers
79 views

Principal components as independent variables

I have a dataset, which has several environmental variables (lets say 5) measured in 3 different stations over 12 months of the year. I have done the PCA and obtain two principal components (PC1 and 2)...
Peter's user avatar
  • 11