Hi,
I am currently working on a school assignment. The assignment is suited for an “either-or” situation, and I am going to use logistic regression. I am now working on the dataset to use in Stata.
I have 100 cars for each year from 2013-2016, either they break down or they don’t, so 1 they break down, or 0 they don’t. The car can also be fixed, and then go back to 1, but would be 0 as long as it takes to fix it. All the cars have different specifications, like age, miles etc. I am going to use daily observations and run a logistic regression for each year.
In that case, the same car would have 365 observations every year. Is there any way of telling Stata to repeat the same observation several times?
For example: If car X runs for 200 days and then breaks down for the rest of the year, there would be 200 observations of 0 and 155 of 1. Is there any easy way of doing this in Stata without repeating the observation by copying it by “hand”?
The aim of the assignment is to see which specifications of the car makes it more reliable. Do you have any thoughts of other types of regression I can use?
Regards, Gerald McCoy
I am currently working on a school assignment. The assignment is suited for an “either-or” situation, and I am going to use logistic regression. I am now working on the dataset to use in Stata.
I have 100 cars for each year from 2013-2016, either they break down or they don’t, so 1 they break down, or 0 they don’t. The car can also be fixed, and then go back to 1, but would be 0 as long as it takes to fix it. All the cars have different specifications, like age, miles etc. I am going to use daily observations and run a logistic regression for each year.
In that case, the same car would have 365 observations every year. Is there any way of telling Stata to repeat the same observation several times?
For example: If car X runs for 200 days and then breaks down for the rest of the year, there would be 200 observations of 0 and 155 of 1. Is there any easy way of doing this in Stata without repeating the observation by copying it by “hand”?
The aim of the assignment is to see which specifications of the car makes it more reliable. Do you have any thoughts of other types of regression I can use?
Regards, Gerald McCoy
Comment