Assistance on Implementation Logic

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
fosuhene
Posts: 4
Joined: December 31st, 2021, 8:56 pm

Assistance on Implementation Logic

Post by fosuhene »

Hello Family,

I am setting up a CAPI application for data capturing. Below is the assigned task:
1. There are two separate forms I am working with.
2. One form is to be administered in all households and the other one is to be administered ONLY on every third (3rd) household in addition to the first form.

Can any community member assist on how to implement this Logic?

Thank you in advance for the support.
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Assistance on Implementation Logic

Post by sherrell »

Hello,

Have you looked at the CSPro examples folder? For there is an example usinng a lookup file:

C:\Users\<user>\Documents\CSPro\Examples 7.6\1 - Data Entry\Lookup Files\Lookup.ent

The biggest issue is how you're choosing every 3rd household. Ideally this would be indicated in a lookup file, as it should be every 3rd HH using the sequential order of the HH number or something--not the arbitrary 3rd HH that is encountered in the field. You generally do not want to leave this to the enumerator to select, for otherwise they will often figure out which households will contribute more information to the second form than others (for example, if your second form is on agriculture, they will avoid allowing a 3rd HH to be picked if it is associated with a farm, in order to lessen their work). Therefore, by placing the selected HHs into a lookup file, you merely have to check against the current HH IDs against what's in the lookup to know whether you should drop into that second form.

Sherrell
nanayaa
Posts: 8
Joined: November 12th, 2021, 10:02 am

Re: Assistance on Implementation Logic

Post by nanayaa »

Is it not possible to have a counter which will count or number and any household number that is divisible by three the second form is activated?
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Assistance on Implementation Logic

Post by sherrell »

You can create a configuration setting that would be persistent across runs of CSEntry, for whenever the enumerator exits CSEntry, you need a way to store this counter somewhere which is associated with CSEntry, not with a specific case.

https://www.csprousers.org/help/CSPro/u ... tings.html

However, for the reasons I listed, this is not advisable, as your sample will likely get skewed towards simpler HHs being chosen for the 3rd spot, once enumerators figure out what's happening.

Sherrell
Post Reply