Need Help with VPIP/PFR by position

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Need Help with VPIP/PFR by position

Postby LazySneaker » Tue Dec 15, 2009 9:17 am

Hi... I`ve downloaded some stats like "VPIP from Button Plus X" and others, but they work wrong. For example, in my HUD opponent has 0% VPIP from MP1 and 15% PFR from MP1. I`ve filtered by Current Cash Limit, but nothing changes. Also, i`ve looked for mistakes in the code, but found nothing. Can you please tell me how i fix it?
LazySneaker
 
Posts: 5
Joined: Fri Sep 25, 2009 2:56 am

Re: Need Help with VPIP/PFR by position

Postby kraada » Tue Dec 15, 2009 10:14 am

Can you post the columns used in the stat in question? I'm not familiar with that one off the top of my head.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Need Help with VPIP/PFR by position

Postby LazySneaker » Tue Dec 15, 2009 11:34 am

To count PFR the code is:
Code: Select all
(PFR_Button_Plus4_Numerator_scm / VPIP_Button_Plus4_Denominator_scm) * 100


To count VPIP the code is:
Code: Select all
(VPIP_Button_Plus4_Numerator_scm / VPIP_Button_Plus4_Denominator_scm) * 100


And the columns are:

PFR_Button_Plus4_Numerator
Code: Select all
SUM(if[holdem_hand_player_statistics.cnt_p_raise > 0 AND holdem_hand_player_statistics.position = 4,1,0])


VPIP_Button_Plus4_Numerator
Code: Select all
sum(if[holdem_hand_player_statistics.flg_vpip AND holdem_hand_player_statistics.position = 4,1,0])


VPIP_Button_Plus4_Denominator
Code: Select all
SUM(if[holdem_hand_player_statistics.position =4,1,0])
LazySneaker
 
Posts: 5
Joined: Fri Sep 25, 2009 2:56 am

Re: Need Help with VPIP/PFR by position

Postby kraada » Tue Dec 15, 2009 11:55 am

Are you certain the hands in question are at least 7 handed? If the hands are 6 handed or less there is no position = 4.

8 is the BB
9 is the SB
0 is the button
1 is the CO
2 is the HJ
3 comes next
4 comes after that.

You can see that there need to be at least 7 players and thus position 4 would be UTG 7 handed.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Need Help with VPIP/PFR by position

Postby LazySneaker » Tue Dec 15, 2009 12:07 pm

Ok... but even if there`s no position 4 in 6-handed table, I still can`t explain why PFR>VPIP from this position. I guess the code should sum the situations where position 4 is in game?
LazySneaker
 
Posts: 5
Joined: Fri Sep 25, 2009 2:56 am

Re: Need Help with VPIP/PFR by position

Postby kraada » Tue Dec 15, 2009 12:34 pm

You're right, that doesn't make sense.

You already have a sum of all position = 4 opportunities as VPIP_Button_Plus4_Denominator.

One thing I just noticed though, when you pasted the stat definitions you appended _scm to them - are the columns named that way as well? Because you didn't say they were.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Need Help with VPIP/PFR by position

Postby LazySneaker » Tue Dec 15, 2009 12:49 pm

Yes, they are, i`ve checked it right now.
LazySneaker
 
Posts: 5
Joined: Fri Sep 25, 2009 2:56 am

Re: Need Help with VPIP/PFR by position

Postby LazySneaker » Tue Dec 15, 2009 1:05 pm

The problem is solved:) It was in the HUD layout, my friend who made me my layout misplaced VPIP_4 and PFR_4.
Please excuse me for annoying :?
LazySneaker
 
Posts: 5
Joined: Fri Sep 25, 2009 2:56 am

Re: Need Help with VPIP/PFR by position

Postby kraada » Tue Dec 15, 2009 1:24 pm

Ah! That makes more sense :)

I'm just glad it turned out to be something simple!
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests