Welcome to pydynpd Discussions! #1
Replies: 11 comments
-
Good Morning Dazhwu, I wanna know if I am able to acess the residual of the cross sections, I wanna apply some dummies in my model to help capture some economic movements, but I prefer if I could use the extreme residual for each city/year individually rather than using graphics analysis ( which is what I am using right now) |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm new to python and trying to use pydynpd to estimate a panel data. Can I ask how to add an interaction terms to the regression? For a normal OLS, I'll just write y ~ x*z, but it does not work here |
Beta Was this translation helpful? Give feedback.
-
________________________________
From: hathuchuan ***@***.***>
Sent: Tuesday, July 23, 2024 5:58 AM
To: dazhwu/pydynpd ***@***.***>
Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
Hi, I'm new to python and trying to use pydynpd to estimate a panel data. Can I ask how to add an interaction terms to the regression? For a normal OLS, I'll just write y ~ x*z, but it does not work here
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2MLMQT3GXBV6VPGDSLZNYSM5AVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJSGQ2TMOI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
You can declare a variable, for example,
xz=x*z
And then use xz in your regression.
Thanks,
Dazhong
…________________________________
From: hathuchuan ***@***.***>
Sent: Tuesday, July 23, 2024 5:58 AM
To: dazhwu/pydynpd ***@***.***>
Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
Hi, I'm new to python and trying to use pydynpd to estimate a panel data. Can I ask how to add an interaction terms to the regression? For a normal OLS, I'll just write y ~ x*z, but it does not work here
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2MLMQT3GXBV6VPGDSLZNYSM5AVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJSGQ2TMOI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks. pydynpd really saves me. I need to run gmm on a set of data but it takes forever in R and I really can’t understand why.
May I ask you another question: Can the regression results be exported to LaTex?
Huan
… On 26 Jul 2024, at 06:05, Dazhong Wu ***@***.***> wrote:
Hi,
You can declare a variable, for example,
xz=x*z
And then use xz in your regression.
Thanks,
Dazhong
________________________________
From: hathuchuan ***@***.***>
Sent: Tuesday, July 23, 2024 5:58 AM
To: dazhwu/pydynpd ***@***.***>
Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
Hi, I'm new to python and trying to use pydynpd to estimate a panel data. Can I ask how to add an interaction terms to the regression? For a normal OLS, I'll just write y ~ x*z, but it does not work here
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2MLMQT3GXBV6VPGDSLZNYSM5AVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJSGQ2TMOI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BKBWZSVMGDGX6NRUJQZVBHTZOGACJAVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJVGM4DIOI>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Thank you. Right now, I don't think there is such capability. When printing the regression table (the table itself, which doesn't include several lines above it such as number of instruments), the package uses the PrettyTable package. PrettyTable has the capability to export to html and latex. You may change the code to get latex. But manually converting the Ascii table to latex might be more efficient.
________________________________
From: hathuchuan ***@***.***>
Sent: Thursday, July 25, 2024 8:34 PM
To: dazhwu/pydynpd ***@***.***>
Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
Thanks. pydynpd really saves me. I need to run gmm on a set of data but it takes forever in R and I really can’t understand why.
May I ask you another question: Can the regression results be exported to LaTex?
Huan
On 26 Jul 2024, at 06:05, Dazhong Wu ***@***.***> wrote:
Hi,
You can declare a variable, for example,
xz=x*z
And then use xz in your regression.
Thanks,
Dazhong
________________________________
From: hathuchuan ***@***.***>
Sent: Tuesday, July 23, 2024 5:58 AM
To: dazhwu/pydynpd ***@***.***>
Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
Hi, I'm new to python and trying to use pydynpd to estimate a panel data. Can I ask how to add an interaction terms to the regression? For a normal OLS, I'll just write y ~ x*z, but it does not work here
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2MLMQT3GXBV6VPGDSLZNYSM5AVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJSGQ2TMOI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BKBWZSVMGDGX6NRUJQZVBHTZOGACJAVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJVGM4DIOI>.
You are receiving this because you commented.
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2PJ6XE7Y6R5EJQ6WS3ZOGKS5AVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJVGQZDCNQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
If you just want to get the latex code for the regression table itself, there is a workaround:
mydpd = regression.abond(command_str, df, ['id', 'year'])
reg_table=mydpd.models[0].regression_table
The regression_table property above is a pandas data frame, which is able to export itself to latex.
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_latex.html
________________________________
From: hathuchuan ***@***.***>
Sent: Thursday, July 25, 2024 8:34 PM
To: dazhwu/pydynpd ***@***.***>
Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
Thanks. pydynpd really saves me. I need to run gmm on a set of data but it takes forever in R and I really can’t understand why.
May I ask you another question: Can the regression results be exported to LaTex?
Huan
On 26 Jul 2024, at 06:05, Dazhong Wu ***@***.***> wrote:
Hi,
You can declare a variable, for example,
xz=x*z
And then use xz in your regression.
Thanks,
Dazhong
________________________________
From: hathuchuan ***@***.***>
Sent: Tuesday, July 23, 2024 5:58 AM
To: dazhwu/pydynpd ***@***.***>
Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
Hi, I'm new to python and trying to use pydynpd to estimate a panel data. Can I ask how to add an interaction terms to the regression? For a normal OLS, I'll just write y ~ x*z, but it does not work here
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2MLMQT3GXBV6VPGDSLZNYSM5AVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJSGQ2TMOI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BKBWZSVMGDGX6NRUJQZVBHTZOGACJAVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJVGM4DIOI>.
You are receiving this because you commented.
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2PJ6XE7Y6R5EJQ6WS3ZOGKS5AVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJVGQZDCNQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
The workaround works perfectly ^_^ Thank you again for your work. it’s really my saver.
… On 26 Jul 2024, at 19:19, Dazhong Wu ***@***.***> wrote:
If you just want to get the latex code for the regression table itself, there is a workaround:
mydpd = regression.abond(command_str, df, ['id', 'year'])
reg_table=mydpd.models[0].regression_table
The regression_table property above is a pandas data frame, which is able to export itself to latex.
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_latex.html
________________________________
From: hathuchuan ***@***.***>
Sent: Thursday, July 25, 2024 8:34 PM
To: dazhwu/pydynpd ***@***.***>
Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
Thanks. pydynpd really saves me. I need to run gmm on a set of data but it takes forever in R and I really can’t understand why.
May I ask you another question: Can the regression results be exported to LaTex?
Huan
> On 26 Jul 2024, at 06:05, Dazhong Wu ***@***.***> wrote:
>
>
> Hi,
>
> You can declare a variable, for example,
>
> xz=x*z
> And then use xz in your regression.
>
> Thanks,
> Dazhong
> ________________________________
> From: hathuchuan ***@***.***>
> Sent: Tuesday, July 23, 2024 5:58 AM
> To: dazhwu/pydynpd ***@***.***>
> Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
> Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
>
> EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
>
>
> Hi, I'm new to python and trying to use pydynpd to estimate a panel data. Can I ask how to add an interaction terms to the regression? For a normal OLS, I'll just write y ~ x*z, but it does not work here
>
> —
> Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2MLMQT3GXBV6VPGDSLZNYSM5AVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJSGQ2TMOI>.
> You are receiving this because you authored the thread.Message ID: ***@***.***>
> —
> Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BKBWZSVMGDGX6NRUJQZVBHTZOGACJAVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJVGM4DIOI>.
> You are receiving this because you commented.
>
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2PJ6XE7Y6R5EJQ6WS3ZOGKS5AVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJVGQZDCNQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BKBWZSSDUUHWIGX5JLP2JJ3ZOI5FXAVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJVHE3DCOI>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Great!
________________________________
From: hathuchuan ***@***.***>
Sent: Friday, July 26, 2024 10:01 PM
To: dazhwu/pydynpd ***@***.***>
Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
The workaround works perfectly ^_^ Thank you again for your work. it’s really my saver.
On 26 Jul 2024, at 19:19, Dazhong Wu ***@***.***> wrote:
If you just want to get the latex code for the regression table itself, there is a workaround:
mydpd = regression.abond(command_str, df, ['id', 'year'])
reg_table=mydpd.models[0].regression_table
The regression_table property above is a pandas data frame, which is able to export itself to latex.
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_latex.html
________________________________
From: hathuchuan ***@***.***>
Sent: Thursday, July 25, 2024 8:34 PM
To: dazhwu/pydynpd ***@***.***>
Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
Thanks. pydynpd really saves me. I need to run gmm on a set of data but it takes forever in R and I really can’t understand why.
May I ask you another question: Can the regression results be exported to LaTex?
Huan
> On 26 Jul 2024, at 06:05, Dazhong Wu ***@***.***> wrote:
>
>
> Hi,
>
> You can declare a variable, for example,
>
> xz=x*z
> And then use xz in your regression.
>
> Thanks,
> Dazhong
> ________________________________
> From: hathuchuan ***@***.***>
> Sent: Tuesday, July 23, 2024 5:58 AM
> To: dazhwu/pydynpd ***@***.***>
> Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
> Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
>
> EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
>
>
> Hi, I'm new to python and trying to use pydynpd to estimate a panel data. Can I ask how to add an interaction terms to the regression? For a normal OLS, I'll just write y ~ x*z, but it does not work here
>
> —
> Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2MLMQT3GXBV6VPGDSLZNYSM5AVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJSGQ2TMOI>.
> You are receiving this because you authored the thread.Message ID: ***@***.***>
> —
> Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BKBWZSVMGDGX6NRUJQZVBHTZOGACJAVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJVGM4DIOI>.
> You are receiving this because you commented.
>
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2PJ6XE7Y6R5EJQ6WS3ZOGKS5AVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJVGQZDCNQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BKBWZSSDUUHWIGX5JLP2JJ3ZOI5FXAVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJVHE3DCOI>.
You are receiving this because you commented.
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2IAL3QISEVM7YRUR3TZOL5OLAVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJWGUYTIMQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi! This is a great python package for GMM method ! Thanks for your work! |
Beta Was this translation helpful? Give feedback.
-
Hi,
Yes, both will be controlled. Thanks,
Dazhong
…________________________________
From: AflyJF ***@***.***>
Sent: Sunday, December 15, 2024 10:31 PM
To: dazhwu/pydynpd ***@***.***>
Cc: Wu, Dazhong ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL] Re: [dazhwu/pydynpd] Welcome to pydynpd Discussions! (Discussion #1)
EXTERNAL: This email was sent to you from an external source. Please review the content carefully and open attachments or click links only if you recognize the sender.
Hi! This is a great python package for GMM method ! Thanks for your work!
I wanna know whether codes in Tutorial will automatically control entity and time effects(For dynamic panel model).
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APCQS2OT3AVJQFADM2EICTL2FZCSBAVCNFSM6AAAAABLKCJ7L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNJXGYZTMMY>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions