0

enter image description herehere]2 I tried to convert my data to panel data but i kept experiencing an error message. The data is in the form of likert scale. The error message was

duplicate couples (id-time) in resulting pdata.frame to find out which, use, e.g., table(index(your_pdataframe), useNA = "ifany")

Also, i would like to conduct a probit and logit model with my data.

My data frame does not include duplicates but R Studio is assuming that they are duplicates. I do not want to remove any of my data. Can someone advise me on how to resolve the issue?. Or is there any way that i can make all my values unique without removing any of them?

Here are the functions that i used before trying to convert my data to panel data;

library(readxl)
sample <- read_excel("Documents/sample.xlsx")
View(sample)
pdata.frame(sample) 

I was trying to convert my data to panel data but it did not work.

country 1 1 1 1 1 year 1 1 1 1 1 age 1 2 1 1 3 health 2 3 2 2 1 schooling 1 0 1 2 0

musa isah
  • 21
  • 2

0 Answers0