liang.che at us.pwc.com
2012-Oct-04 18:26 UTC
[R] can stepAIC be customized to exclude coefficients with p-value less than certain values?
For example, if coefficient's p-value is less than 0.1 I want the stepwise to automatically drop that variable. Can the stepAIC be customized to do that? SAS seems to be able to customized stepwise function with p-value or cooks'd. thanks! ______________________________________________________________________ The information transmitted, including any attachments, is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited, and all liability arising therefrom is disclaimed. If you received this in error, please contact the sender and delete the material from any computer. PricewaterhouseCoopers LLP is a Delaware limited liability partnership. This communication may come from PricewaterhouseCoopers LLP or one of its subsidiaries. [[alternative HTML version deleted]]
David Winsemius
2012-Oct-04 20:22 UTC
[R] can stepAIC be customized to exclude coefficients with p-value less than certain values?
On Oct 4, 2012, at 11:26 AM, liang.che at us.pwc.com wrote:> For example, if coefficient's p-value is less than 0.1 I want the stepwise > to automatically drop that variable. Can the stepAIC be customized to do > that? SAS seems to be able to customized stepwise function with p-value > or cooks'd.You might take some time to ponder the possibility that the fact that it's not easy in R might be useful information in its own right. -- David Winsemius, MD Alameda, CA, USA