Question

I have a dataframe with these columns: peo means people with cancer.I encode 'peo' collum to...

I have a dataframe with these columns:

peo means people with cancer.I encode 'peo' collum to low and hight and the have values 0 for low and 1 for hight. Egg , meat_other, mutton_goat, beed, pig , poultry are numeric values of the consumption of these types of foods. I would like to answer this question on my analysis: If this type of foods have a relation with cancer.All my variables are numeric , less country that is the names of the countries. I want to do a linear regression and a logistic regression model with these variables. My question is:  which ones are dependent variables and which ones are independent variables. I want to use multiple variables in my model ( not binary). Thanks

0 0
Add a comment Improve this question Transcribed image text
Answer #1

dependent variable - whether people have cancer or not

independent variable - type of foods

Add a comment
Know the answer?
Add Answer to:
I have a dataframe with these columns: peo means people with cancer.I encode 'peo' collum to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I have a dataframe with these columns: peo means people with cancer.I encode 'peo' collum to low ...

    I have a dataframe with these columns: peo means people with cancer.I encode 'peo' collum to low and hight and the have values 0 for low and 1 for hight. Egg , meat_other, mutton_goat, beed, pig , poultry are numeric values of the consumption of these types of foods. I would like to answer this question on my analysis: If this type of foods have a relation with cancer.All my variables are numeric , less country that is the names...

  • Python with Pandas dataframe I have a csv file that contains a large number of columns...

    Python with Pandas dataframe I have a csv file that contains a large number of columns and rows. I need to write a script that concatenates some elements of the first row with some elements of the 2 row. Something like # if data[1][0] starts with ch then concatenate the element right below it. I have attached a picture of just a sample of my data. The booleans have to stay on there as is. But I must drop the...

  • I have various sums that I've calculated from my dataframe and I want to use matplotlib...

    I have various sums that I've calculated from my dataframe and I want to use matplotlib and make pi chart of percentage of students with a particular nationality. for ex, totalStudents=(df.sum()) studentsSwiss=(df1.sum()) studentsIndian=(df2.sum()) studentsChinese=(df3.sum()) etc. And I want the pi chart to be in percentage. so take in those values convert to percentage of total students of that nationality. I'm using python. additional info: df is a dataframe that has a column that sums total Swiss, Indian, Chinese nationalities and...

  • I have a data set called ACS that I set my_data <- read.csv('acs_ny_CSV.csv'). One of the...

    I have a data set called ACS that I set my_data <- read.csv('acs_ny_CSV.csv'). One of the values in the data set here is FamilyIncome having a value from 50 to 1 mill plus FamilyIncome Min. : 50 1st Qu.: 52540 Median : 87000 Mean : 110281 3rd Qu.: 133800 Max. :1605000 I need to convert this value to a 0 and 1 as I need to "Make a binary variable with value TRUE for income above $150,000 and FALSE for...

  • For this assignment I have to analyze the regression (relationship between 2 independent variables and 1...

    For this assignment I have to analyze the regression (relationship between 2 independent variables and 1 dependent variable). Below is all of my data and values. I need help answering the questions that are at the bottom. Questions regarding the strength of the relationship Model: Median wage (y) = 40.3774 - 2.0614 * Population + 0.0284 * GDP Predictor Coefficient Estimate Standard Error t-statistic p-value Constant B0 40.3774 1.1045 36.558 0 Population B1 -2.0614 0.5221 -3.948 0.0003 GDP B2 0.0284...

  • I have to submit a term paper which involves conducting a regression and correlation analysis on ...

    I have to submit a term paper which involves conducting a regression and correlation analysis on any topic of my choosing. The paper must be based on yearly data for any economic or business variable, for a period of at least 20 years. The following also must be included in the paper: • The term paper should distinguish between dependent and independent variables; determine the regression equation by the least squares method; plot the regression line on a scatter diagram;...

  • Hello, I have computed a regression model where the dependent variable is "earn" as in how...

    Hello, I have computed a regression model where the dependent variable is "earn" as in how much money the student will earn after college. My independent variables include "public" as in was this college public(1) or private(0), "academic ability" (a score calculated as the average score from SAT/ACT data of admitted students), "Average Cost" of tuition and  "population" (of the city the college is in). Are public colleges better or private ones? SUMMARY OUTPUT Regression Statistics Multiple R 0.649 R Square...

  • Please I want someone help me to solve this question a,b,c,d,e I’m not sure about my...

    Please I want someone help me to solve this question a,b,c,d,e I’m not sure about my solution This is the data # Set directory to data folder setwd("C:data") # getwd() # Read data from csv file data <- read.csv("SweetPotatoFirmness.csv",header=TRUE, sep=",") head(data) str(data) # scatterplot of independent and dependent variables plot(data$pectin,data$firmness,xlab="Pectin, %",ylab="Firmness") par(mfrow = c(2, 2)) # Split the plotting panel into a 2 x 2 grid model <- lm(firmness ~ pectin , data=data) summary(model) plot(model) par(mfrow=c(1,1)) # Residual Plot data$residuals...

  • (I did this homework in completion but professor was not happy with answers whatsoever, need additional...

    (I did this homework in completion but professor was not happy with answers whatsoever, need additional answers and especially improvement to 1.b help!! photos not attaching? mean by severai steps. inis is a View Feedback homework and will need you to work, in one two View Feedback or various steps. Unfortunately, I cannot read your screen shot of what you did on excel. As I have said in numerous messages announcements etc, I cannot аcсept pictures. You need to write...

  • Hello, I need question 1 sections a,b,and c. Please make around a page long. CHAPTER 4...

    Hello, I need question 1 sections a,b,and c. Please make around a page long. CHAPTER 4 Techniques for Understanding Consumer Demand and Behavior 109 t effect. ed that managers be familiar with both approaches because each provides useful ues need to realize that marketing analysis builkds on the fundamental eco- of demand and elasticity. Marketers take these basie economie n Table 3.7 in goies and develop analyses of brand differentiation, market segmentation, and dct pricing, While some of the formal...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT