Suljettu

Help me look at what's wrong with my Rstudio project

a part, b part, and f part are already done. I am struggling with messy_impute() function for a few hours, but would probably know how to turn it into tidy_impute()

(a) Create a simulated dataset in R called gradebook that represents a possible gradebook in

the basic format given above:

• Each row of the gradebook should contain measurements for a single student. • Each column should contain scores for individual assignments.

• The last column should be “Section.”

The simulated gradebook should contain the grades for at least 150 students (80 in section A and 70 in section B) and scores for 13 assignments. Set the seed for simulating your dataset to be your UID.

(b) Randomly replace 10% of the scores in the Homework_10 and the Exam_3 by NA values. For each section, print out one student with NA value in the Homework_10, one with NA value in the Exam_3, and one without NA values in both columns. You will use those six students for the rest of the problems to demonstrate your results.

Imputation is the process of replacing missing values by estimated values. The simplest (far from preferred) method to impute values is to replace missing values by the most typical (or “average”) value.

(c) Write a function messy_impute() that will impute missing values in a data frame (or ntbble) that is organized in the same non-tidy way as grade book. You may present pseudocode or flowchart here.

The mess_impute() function should have two optional arguments:

- The center argument specifies whether to impute using the mean or the median.

- The margin argument specifies one of two ways to input values:

◦ Impute the missing values using the center of the observed (non-missing) values in the column.

◦ Impute the missing values using the center of the observed values in the row.

- The range argument specifies the columns/the rows for computing the typical value.

It could be names or numeric indices

(d) Using the gradebook variable, without reshaping or tidying, impute the missing homework and exam scores with messy_impute() using both the mean and the median of the observed homework and exam scores for sections A and B respectively.

(e) Using the gradebook variable, without reshaping or tidying, impute each missing homework and exam score with messy_impute() using both the mean and the median of the individual student’s observed homework and exam scores.

(f) Transform the gradebook variable into tidy format. Call the transformed variablegradebook_tidy.

(g) Write a function tidy_impute() that will impute missing values from a specified column in a tibble that is organized in the same tidy way as gradebook_tidy. Thetidy_impute() function should have optional arguments to impute values that correspond to imputing in the same ways as in the messy_impute() function. You may present your pseudo code or flowchart here.

(h) Using the gradebook_tidy variable impute the missing homework and exam scores withtidy_impute() using both the mean and the median of the observed homework and exam scores for sections A and B respectively.

(i) Using the gradebook_tidy variable, impute each missing homework and exam score withtidy_impute() using both the mean and the median of the individual student’s observed homework and exam scores.

Taidot: R-ohjelmointikieli

Näytä lisää: project title names aspnet, java project gui user input, mba finance project topics names, bahrain multinational companies project manager names, project magento product input 500 items ver11, project magento product input 500 items, need help auction website script big project, help desk email database code project, business names and logos for sale, help with ruby on rails project hosting, looking for an illustrator to draw a couple characters of my c hildrens book where do i look, www freelancer co za south africa to help to developing co perative project, i am looking for a web design project that i can do for my studies, help you get freelancer programming project, lucia's neighborhood independent reading draw a map to help lucia's uncles find farm, need help to do my research project, project management names, what's wrong with my website, I am looking for a freelancer to help me with my translation project. The skill required is Translation. I am happy to pay a fix

Tietoa työnantajasta:
( 0 arvostelua ) Los Angeles, United States

Projektin tunnus: #23851322

6 freelanceria on tarjonnut keskimäärin 31$ tähän työhön

aki003iitr

Data Scientist with more than 4 years of programming experience in R and have completed more than 30 projects in R on this platform. I can help you with the issue you are facing with the function.

$60 USD 7 päivässä
(42 arvostelua)
6.1
mtdevil369

hi i have understand the project requirement & interested to work for this project. I will start right now and I will do it within your time . Please send a message so we can discuss more & start the project. Thanks.

$30 USD 1 päivässä
(8 arvostelua)
3.5
freeproject800

Hello sir We are a group of expert each one has a master degree in statistical analysis Economics and finances. We have more than 9 years of professional experience in R_programming language, python , SPSS .. we can st Lisää

$20 USD 1 päivässä
(8 arvostelua)
3.2
ricmwas

Hi I see that you are struggling with data manipulation in r. I could assist you over come this problem by completing your code with well commented code and steps followed to arrive at the final answer. Send me the r Lisää

$30 USD 1 päivässä
(4 arvostelua)
3.1
Salvatr12

Hello! You did not include the script you are working on. Can help quickly Please message details Thanks

$17 USD 1 päivässä
(4 arvostelua)
3.0
matttai90

I'm a highly qualified Data Scientist and Electrical Engineer based in the United States. I have a Masters degree and have worked professionally creating Statistical learning models on millions of rows of data with bot Lisää

$30 USD 7 päivässä
(1 arvostelu)
2.6