{"id":35139,"date":"2022-02-22T12:46:01","date_gmt":"2022-02-22T12:46:01","guid":{"rendered":"https:\/\/assignmenttutors.net\/blog\/data-science-r-rstudio\/"},"modified":"2022-02-22T12:46:01","modified_gmt":"2022-02-22T12:46:01","slug":"data-science-r-rstudio","status":"publish","type":"post","link":"https:\/\/assignmenttutors.net\/blog\/data-science-r-rstudio\/","title":{"rendered":"Data science r &#8211; rstudio"},"content":{"rendered":"<div>\n<p>\u00a0\u00a0\u00a0\u00a0<\/p>\n<p>3.Using the iris dataset:<br \/>a) combine the Setosa and Versicolor into group \u201c0\u201d and label the Virginica to \u201c1\u201d. Create a new variable called iris$Group with the 0 or 1 labels, \u00a0\u00a0<\/p>\n<p>b) build a logistic regression model using any available data that will predict the observation being Virginica ( value of 1 in Group variable),<br \/>c) calculate the probability of a new plant being a Virginica for the following parameters:\u00a0<\/p>\n<p>Sepal.Width =5 Petal.Length =10 Petal.Width =7 Sepal.Length=9\u00a0<\/p>\n<p>4.Using the kyphosis dataset:<br \/>a) convert the kyphosis$Kyphosis variable to numeric, assign a 1 to present and a 0 to absent,<br \/>b) build a logistic regression using all other variables and estimate the probability of the observation having a \u201cpresent\u201d hyphosis. What can you say about the coefficients? Are the significant?<br \/>c) calculate the probability of kyphosis being \u201cpresent\u201d for the following observation: Age=50, Start=10, Number=5.\u00a0<\/p>\n<p>5. Using all the single variable regressions from Exercise 1, test if the variable pairs are homoscedastic or heteroscedastic. Plot your findings. Using the plot(x=<em>my_x_variable, <\/em>y=<em>my_y_variable, <\/em>type=\u201dp\u201d) function. Use <em>my_data$variable_name <\/em>to define x and y variables in the function.\u00a0<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0\u00a0\u00a0\u00a0 3.Using the iris dataset:a) combine the Setosa and Versicolor into group \u201c0\u201d and label the Virginica to \u201c1\u201d. Create a new variable called iris$Group with the 0 or 1 labels, \u00a0\u00a0 b) build a logistic regression model using any available data that will predict the observation being Virginica ( value of 1 in Group [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-35139","post","type-post","status-publish","format-standard","hentry","category-education"],"_links":{"self":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/35139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/comments?post=35139"}],"version-history":[{"count":0,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/35139\/revisions"}],"wp:attachment":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/media?parent=35139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/categories?post=35139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/tags?post=35139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}