[R] how to do a probit?

Chuck Cleland ccleland at optonline.net
Fri Oct 3 16:18:05 CEST 2008


On 10/3/2008 10:06 AM, Viktor Nagy wrote:
> Hi,
> 
> I know that this question appears in the archives, but from the docs I
> couldn't figure out how to do it, (I am really new to R)
> 
> I have a simple setting with three variables (y binary, x1 continuous, x2
> dummy) and would like to run a probit estimation of the form y=Phi(X*B). How
> can I do this? I've found nls, but can't figure out how to use it.

  You might want something like this:

glm(y ~ x1 + x2, data = yourdata, family=binomial(link="probit"))

> thanks for your help,
> Viktor
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code. 

-- 
Chuck Cleland, Ph.D.
NDRI, Inc. (www.ndri.org)
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894



More information about the R-help mailing list