简体   繁体   中英

Increase sample size for logistic regression

Is it possible to somehow increase the number of my sample size for a logistic regression.

在此处输入图像描述

The red data dots are false cases and the green ones are true cases. I want to create more data (let's say 500 points) which are sampled from the data in the figure. The reason for this is that the logistic regression line will tilt more to the right, like this: 在此处输入图像描述

What is an easy way to do this?

Regards,

Dante

There are multiple ways of doing it but the quickest one i would say is to generate data with random x (btw 25 and 200) and y (btw 0.5 and 1.5). It's definitely not a clean way to do it, but it is fast

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM