当前位置:网站首页>How to perform power regression in R

How to perform power regression in R

2022-06-24 18:38:00 Mrrunsen

Power regression is a kind of nonlinear regression , In the following form :

y = ax b

This type of regression is used to simulate the case where the response variable is equal to the power of the prediction variable .

The following step-by-step example shows how to R To perform power regression on a given dataset .

First , Let's create some dummy data for the two variables :x and y.

x=1:20
y=c(1, 8, 5, 7, 6, 20, 15
原网站

版权声明
本文为[Mrrunsen]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241324227549.html