Re: [R] How to set proxy settings for R
Dear Pete, Thanks, it works now! I did as you suggested: --internet flag to the target line (right click, properties) e.g. "C:\Program Files\R\R-2.8.1\bin\Rgui.exe" --internet2 Strangely enough, I can now easly download packages but I still get these messages: chooseCRANmirror() Warning message: In open.connection(con, "r") : cannot open: HTTP status was '407 Proxy Authentication Required' > utils:::menuInstallPkgs() Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.10 ..but eventually it does install what I want...any clue? Alessandra -- View this message in context: http://n4.nabble.com/How-to-set-proxy-settings-for-R-tp2016158p2017172.html Sent from the R help mailing list archive at Nabble.com. __ R-help@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.
[R] How to set proxy settings for R
Dear All, I would like to run R on my computer (with win xp on it) at work bu the proxy restrictions of the university don't let me download the packages or to connect to a cran mirror, I usually get this message: > chooseCRANmirror() Warning message: In open.connection(con, "r") : unable to connect to 'cran.r-project.org' on port 80. Do you know if there is a way to set proxy settings for using R normally? Thanks a lot -- View this message in context: http://n4.nabble.com/How-to-set-proxy-settings-for-R-tp2016158p2016158.html Sent from the R help mailing list archive at Nabble.com. __ R-help@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.
Re: [R] How to force regression coeffs for some values in a categorical variable
My model has several independent and categorical variables. I would not like to subset them as other variables in the data are useful. I just wanted to set some coefficients for some levels in a single category. A prototype of it can be something like y + constant * (cat.variable1-Level1) ~ x1 + x2 + cat.variable1(if level != level1) + cat.variable2 + Currently, I am modifying data by creating new variables for each level and recoding the original values. I am wondering if there are any other approaches. Thanks, Danda On Sun, Nov 29, 2009 at 11:48 AM, David Winsemius wrote: > > On Nov 29, 2009, at 11:23 AM, sr danda wrote: > > Hi, >> >> I am a new R user. I am using it develop regression models with >> categorical >> variables. >> Is there a way to force some regression coefficients to be zero for some >> of >> the values in a categorical variable (with 12 factor levels)? >> >> I am recoding the values to the default value (1st in the order of >> dummy's). >> But I am not sure if this is the correct approach if I want to force >> coefficients to be specific values. >> > > It's a bit unclear from your description what you are trying to do (and it > might help to hear the justification for doing it). If you do not want the > cases with particular factor levels used in the prediction, then subset them > out. If you want a group of factor levels grouped and and then used as the > reference level, then perhaps: > > ?relevel > > That will of course result in the intercept term becoming the adjusted mean > for those levels, but I'm sure you already knew that. > > > >> Thanks for your help. >> >> Regards, >> Danda >> >> -- > > David Winsemius, MD > Heritage Laboratories > West Hartford, CT > > [[alternative HTML version deleted]] __ R-help@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.
[R] How to force regression coeffs for some values in a categorical variable
Hi, I am a new R user. I am using it develop regression models with categorical variables. Is there a way to force some regression coefficients to be zero for some of the values in a categorical variable (with 12 factor levels)? I am recoding the values to the default value (1st in the order of dummy's). But I am not sure if this is the correct approach if I want to force coefficients to be specific values. Thanks for your help. Regards, Danda [[alternative HTML version deleted]] __ R-help@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.