in Education by
I am working with this data set: u <- c(31,63,95,117,127,143,151.5,157) v <- c(98.5,103.8,107.5,101,85,63,34.3,14) I want to fit a model to these data so that u = f(v). I want it to be a 3rd order polynomial model. How can I do that in R? Additionally, can R help me to find the best fitting model? Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
To get a third order polynomial in x - model<- lm(v~ poly(u,3)) Or model<- lm(v~ u+ I(u^2) + I(u^3)) poly(u,3) is preferable. Hope this answer helps.

Related questions

0 votes
    Can someone tell me the difference between Data Analysis, Data Mining, Data Analytics, Data Science, Machine learning ... each other. Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    __________ refers to a group of techniques for fitting and studying the straight-line relationship between two ... R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    You are solving a data science problem that is ridden with many missing values. You want to clean the data before ... do to replace these missing values? Develop your own function....
asked Oct 16, 2020 in Technology by JackTerrance
0 votes
    I am training on 970 samples and validating on 243 samples. How big should batch size and number of epochs be ... on data input size? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    In syntax of linear model lm(formula,data,..), data refers to ______ (a) Matrix (b) Vector (c) ... Linear Regression of R Programming Select the correct answer from above options...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    What are the data types in R on which binary operators can be applied? (a) Scalars (b) Matrices (c) ... and Debugging of R Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    How is a Data object represented internally in R language? (a) unclass (as.time ( 2018-12-28″)) (b) ... and Debugging of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Decimal values are referred as ________ data types in R. (a) Numeric (b) Character (c) Integer (d) Lists ... and Out of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    __________ is the best way for communicating the results of data analysis using the R language. (a) Single ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which package in R supports the exploratory analysis of genomic data? (a) Adegenat (b) Adegenet (c) Adegnet ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    The four most frequently used types of data objects in R are vectors, matrices, data frames and ________ (a) ... Out of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    In R using the function, ________ one can check the data type of vector. (a) Typeof() (b) Castof() (c) ... In and Out of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    One way to pass data around is by de parsing the R object with _________ (a) dput() (b) write() (c ... and Operations of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    MapReduce jobs submitted from either Oozie, Pig or Hive can be used to encode, improve and sample the data sets ... of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    The data type of the R-object becomes the data type of the ________ (a) Functions (b) Packages (c) Variables ... Out of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
...