Fitting a function in R

后端 未结 3 1178
抹茶落季
抹茶落季 2021-02-04 09:25

I have a few datapoints (x and y) that seem to have a logarithmic relationship.

> mydata
    x   y
1   0 123
2   2 116
3   4 113
4  15 100
5  48  87
6  75  84         


        
3条回答
  •  暖寄归人
    2021-02-04 09:51

    Check this document out: http://cran.r-project.org/doc/contrib/Ricci-distributions-en.pdf

    In brief, first you need to decide on the model to fit onto your data (e.g., exponential) and then estimate its parameters.

    Here are some widely used distributions: http://www.itl.nist.gov/div898/handbook/eda/section3/eda366.htm

提交回复
热议问题