Panel Data error in R about “duplicate couples”, how do I read the table *table(index(pdata), useNA=“ifany”)*?2019 Community Moderator ElectionHow to create multiline graphs from a collection of rdta filesFilter specific rowsextrapolate in R for a time-series dataHow to plot line graph in R with years as x-axis and y-axis as count?R - Using data.table to efficiently test rolling conditions across multiple rows and columnsCan't move timePlot legend when using R openairHow to merge the dyadic data in R?Using entry and exit date, calculate for each year a program has run how many individuals have been enrolled [R]percentage change between closest yearsHow to sum on different intervals to find multi year peaks

Does Mathematica reuse previous computations?

Professor being mistaken for a grad student

Does someone need to be connected to my network to sniff HTTP requests?

Did Ender ever learn that he killed Stilson and/or Bonzo?

Can a druid choose the size of its wild shape beast?

How to terminate ping <dest> &

Hacking a Safe Lock after 3 tries

Interplanetary conflict, some disease destroys the ability to understand or appreciate music

In a future war, an old lady is trying to raise a boy but one of the weapons has made everyone deaf

Is there a data structure that only stores hash codes and not the actual objects?

My Graph Theory Students

how to write formula in word in latex

What are substitutions for coconut in curry?

How to deal with taxi scam when on vacation?

Brexit - No Deal Rejection

Why one should not leave fingerprints on bulbs and plugs?

Life insurance that covers only simultaneous/dual deaths

Awsome yet unlucky path traversal

How do anti-virus programs start at Windows boot?

Are ETF trackers fundamentally better than individual stocks?

How to use deus ex machina safely?

What is a^b and (a&b)<<1?

How to create the Curved texte?

Do I need to be arrogant to get ahead?



Panel Data error in R about “duplicate couples”, how do I read the table *table(index(pdata), useNA=“ifany”)*?



2019 Community Moderator ElectionHow to create multiline graphs from a collection of rdta filesFilter specific rowsextrapolate in R for a time-series dataHow to plot line graph in R with years as x-axis and y-axis as count?R - Using data.table to efficiently test rolling conditions across multiple rows and columnsCan't move timePlot legend when using R openairHow to merge the dyadic data in R?Using entry and exit date, calculate for each year a program has run how many individuals have been enrolled [R]percentage change between closest yearsHow to sum on different intervals to find multi year peaks










0















I am new to R Studio and I need it for a stats research. I am trying to use a Panel Model on my dataset in R.
I got a dataset about education in the US. "id"=STATES (a list of US states), "time"= TIME (years).



I ran:



pdata<- plm.data(states.all, index = c("S_CODE", "YEAR"))


where S_CODE is the numeric value assigned to the different states (I used as.numeric, created a column and added it back to the original dataset states.all)



I get the following warning message:



In plm.data(states.all, index = c("S_CODE", "YEAR")) :
duplicate couples (id-time) in resulting panel.dataframe
to find out which, use e.g. table(index(your_pdataframe), useNA = "ifany")


Then I run table(index(your_pdataframe), useNA = "ifany") and I obtain the following table:



 YEAR
S_CODE 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
3 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0
4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
6 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
7 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0
8 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0
9 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0
10 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0
12 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
13 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
14 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0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 1 1 1 1 1 1 1 1 1 1
34 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
35 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
36 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
37 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
38 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1


What am I supposed to do with this? I saw on the internet that normally you would obtain all 1s so maybe the 0s are the problems, but if so, how can I get rid of those?



I additionally tried to run a pooled OLS estimator, because I need it for my research, and I got the error



Error in class(x) <- setdiff(class(x), "pseries") : 
invalid to set the class to matrix unless the dimension attribute is of length 2 (was 0)


Please help me because I really don't know what to do. I'm not even a programmer but I must use the software for a my social science research and I have no alternative.










share|improve this question



















  • 1





    What are you trying to do? Please take a look at How to Ask. We're happy to help with specific programming questions, but we need to see a Minimal, Complete, and Verifiable example of your problem with sample data, code and a specific programming question about it that we can help you with. If you're still not sure what you're trying to accomplish, you'll probably do better reading R tutorials and then coming back once you've gotten started. Good luck!

    – divibisan
    Mar 7 at 0:00
















0















I am new to R Studio and I need it for a stats research. I am trying to use a Panel Model on my dataset in R.
I got a dataset about education in the US. "id"=STATES (a list of US states), "time"= TIME (years).



I ran:



pdata<- plm.data(states.all, index = c("S_CODE", "YEAR"))


where S_CODE is the numeric value assigned to the different states (I used as.numeric, created a column and added it back to the original dataset states.all)



I get the following warning message:



In plm.data(states.all, index = c("S_CODE", "YEAR")) :
duplicate couples (id-time) in resulting panel.dataframe
to find out which, use e.g. table(index(your_pdataframe), useNA = "ifany")


Then I run table(index(your_pdataframe), useNA = "ifany") and I obtain the following table:



 YEAR
S_CODE 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 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1 1 1 1 1


What am I supposed to do with this? I saw on the internet that normally you would obtain all 1s so maybe the 0s are the problems, but if so, how can I get rid of those?



I additionally tried to run a pooled OLS estimator, because I need it for my research, and I got the error



Error in class(x) <- setdiff(class(x), "pseries") : 
invalid to set the class to matrix unless the dimension attribute is of length 2 (was 0)


Please help me because I really don't know what to do. I'm not even a programmer but I must use the software for a my social science research and I have no alternative.










share|improve this question



















  • 1





    What are you trying to do? Please take a look at How to Ask. We're happy to help with specific programming questions, but we need to see a Minimal, Complete, and Verifiable example of your problem with sample data, code and a specific programming question about it that we can help you with. If you're still not sure what you're trying to accomplish, you'll probably do better reading R tutorials and then coming back once you've gotten started. Good luck!

    – divibisan
    Mar 7 at 0:00














0












0








0








I am new to R Studio and I need it for a stats research. I am trying to use a Panel Model on my dataset in R.
I got a dataset about education in the US. "id"=STATES (a list of US states), "time"= TIME (years).



I ran:



pdata<- plm.data(states.all, index = c("S_CODE", "YEAR"))


where S_CODE is the numeric value assigned to the different states (I used as.numeric, created a column and added it back to the original dataset states.all)



I get the following warning message:



In plm.data(states.all, index = c("S_CODE", "YEAR")) :
duplicate couples (id-time) in resulting panel.dataframe
to find out which, use e.g. table(index(your_pdataframe), useNA = "ifany")


Then I run table(index(your_pdataframe), useNA = "ifany") and I obtain the following table:



 YEAR
S_CODE 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
3 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0
4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
6 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25 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
26 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0
27 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0
28 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
29 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
30 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
31 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0
32 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
33 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
34 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
35 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
36 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
37 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
38 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1


What am I supposed to do with this? I saw on the internet that normally you would obtain all 1s so maybe the 0s are the problems, but if so, how can I get rid of those?



I additionally tried to run a pooled OLS estimator, because I need it for my research, and I got the error



Error in class(x) <- setdiff(class(x), "pseries") : 
invalid to set the class to matrix unless the dimension attribute is of length 2 (was 0)


Please help me because I really don't know what to do. I'm not even a programmer but I must use the software for a my social science research and I have no alternative.










share|improve this question
















I am new to R Studio and I need it for a stats research. I am trying to use a Panel Model on my dataset in R.
I got a dataset about education in the US. "id"=STATES (a list of US states), "time"= TIME (years).



I ran:



pdata<- plm.data(states.all, index = c("S_CODE", "YEAR"))


where S_CODE is the numeric value assigned to the different states (I used as.numeric, created a column and added it back to the original dataset states.all)



I get the following warning message:



In plm.data(states.all, index = c("S_CODE", "YEAR")) :
duplicate couples (id-time) in resulting panel.dataframe
to find out which, use e.g. table(index(your_pdataframe), useNA = "ifany")


Then I run table(index(your_pdataframe), useNA = "ifany") and I obtain the following table:



 YEAR
S_CODE 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
3 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0
4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
6 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
7 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0
8 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0
9 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0
10 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0
12 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
13 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
14 1 0 0 0 1 1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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
34 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
35 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
36 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
37 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
38 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1


What am I supposed to do with this? I saw on the internet that normally you would obtain all 1s so maybe the 0s are the problems, but if so, how can I get rid of those?



I additionally tried to run a pooled OLS estimator, because I need it for my research, and I got the error



Error in class(x) <- setdiff(class(x), "pseries") : 
invalid to set the class to matrix unless the dimension attribute is of length 2 (was 0)


Please help me because I really don't know what to do. I'm not even a programmer but I must use the software for a my social science research and I have no alternative.







r






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 6 at 22:18









Brian Tompsett - 汤莱恩

4,2421338102




4,2421338102










asked Mar 6 at 19:42









liflin_4liflin_4

1




1







  • 1





    What are you trying to do? Please take a look at How to Ask. We're happy to help with specific programming questions, but we need to see a Minimal, Complete, and Verifiable example of your problem with sample data, code and a specific programming question about it that we can help you with. If you're still not sure what you're trying to accomplish, you'll probably do better reading R tutorials and then coming back once you've gotten started. Good luck!

    – divibisan
    Mar 7 at 0:00













  • 1





    What are you trying to do? Please take a look at How to Ask. We're happy to help with specific programming questions, but we need to see a Minimal, Complete, and Verifiable example of your problem with sample data, code and a specific programming question about it that we can help you with. If you're still not sure what you're trying to accomplish, you'll probably do better reading R tutorials and then coming back once you've gotten started. Good luck!

    – divibisan
    Mar 7 at 0:00








1




1





What are you trying to do? Please take a look at How to Ask. We're happy to help with specific programming questions, but we need to see a Minimal, Complete, and Verifiable example of your problem with sample data, code and a specific programming question about it that we can help you with. If you're still not sure what you're trying to accomplish, you'll probably do better reading R tutorials and then coming back once you've gotten started. Good luck!

– divibisan
Mar 7 at 0:00






What are you trying to do? Please take a look at How to Ask. We're happy to help with specific programming questions, but we need to see a Minimal, Complete, and Verifiable example of your problem with sample data, code and a specific programming question about it that we can help you with. If you're still not sure what you're trying to accomplish, you'll probably do better reading R tutorials and then coming back once you've gotten started. Good luck!

– divibisan
Mar 7 at 0:00













0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55031035%2fpanel-data-error-in-r-about-duplicate-couples-how-do-i-read-the-table-table%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55031035%2fpanel-data-error-in-r-about-duplicate-couples-how-do-i-read-the-table-table%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved