Include quadratic terms in experimental design

This forum is for posts that specifically focus on the online (web-based) version of Ngene.

Moderators: Andrew Collins, Michiel Bliemer, johnr

Include quadratic terms in experimental design

Postby dce_learner » Wed Jul 16, 2025 10:18 am

I'm designing a discrete choice experiment with four attributes: three topic-related attributes and one cost attribute. Each attribute has four levels. I want to estimate a quadratic utility function of the form:

V_i = beta_1 [Attribute1]_i + beta_2 [Attribute1]_i ^2 + beta_3 [Attribute2]_i + beta_4 [Attribute2 %]_i ^2 + beta_5 [Attribute3]_i + beta_6 [Attribute3]_i ^2 + beta_7[Cost ~ lognormal]

I saw in the Ngene manual (Section 5.6) that only simple linear functions are supported via fcn(...). Specifically, it states that "Currently only simple linear functions are supported in Ngene, therefore only plus ( + ), minus ( - ), attribute names and constants are allowed."

Does this mean I cannot include squared terms in the utility function (I tried it in Ngene, and it failed)? If so, are there any workarounds or supported methods for implementing quadratic terms in Ngene?

Alternatively, I can generate an efficient design using only the linear terms, under the assumption that the variation in the linear attribute will still carry the relevant information needed to estimate a quadratic term during model estimation, given the deterministic relationship between an attribute and its square. That is, I’d estimate the utility function with both linear and squared terms even if the design only explicitly includes the linear levels. However, if the quadratic terms are not explicitly included in the design, it isn't included in the Fisher information matrix and will affect the efficiency of the design.

Any insights or advice would be greatly appreciated!
dce_learner
 
Posts: 2
Joined: Sat Jul 12, 2025 2:06 pm

Re: Include quadratic terms in experimental design

Postby Michiel Bliemer » Wed Jul 16, 2025 5:20 pm

Assuming that your attributes are numerical (not categorical), you can easily include quadratic terms into the utility function as follows:

;model:
U(...) = b1 * X1[...] + b2 * X1 * X1 + etc.

A quadratic term is simply an interaction with itself.

Michiel
Michiel Bliemer
 
Posts: 2022
Joined: Tue Mar 31, 2009 4:13 pm

Re: Include quadratic terms in experimental design

Postby dce_learner » Thu Jul 17, 2025 12:44 am

Thanks Michael. I did do this. However, D-error becomes pretty big, which seems to confirm my thought on the loss of efficiency, given that the quadratic term is a deterministic function of the linear term itself.

This is why I was curious if you've had any experience with it and/or if you'd recommend choosing the design based on just linear terms and then adding the quadratic term to the utility function in the estimation phase. Sorry if my question didn't make it super clear.
dce_learner
 
Posts: 2
Joined: Sat Jul 12, 2025 2:06 pm


Return to Support for Ngene Online

Who is online

Users browsing this forum: No registered users and 0 guests

cron