similar to: Help! What does this R command mean?

Displaying 20 results from an estimated 30000 matches similar to: "Help! What does this R command mean?"

2006 Jan 30
2
[R] Integer bit size and the modulus operator (PR#8541)
On 1/30/2006 1:39 PM, Ionut Florescu wrote: > Thank you for the quick reply, I will look into the R packages. > For crashing R try this: > > generator.zp=function(x,p) > {a=1:(p-1); b=x^a%%p; > if(all(b[1:(p-2)]!=1)&&(b[p-1]==1)){return(x, " Good ")} > else{return(x, " No Good, try another integer ")} > } Thanks, I can reproduce the crash using
2006 Jan 30
4
Integer bit size and the modulus operator
I am a statistician and I come up to an interesting problem in cryptography. I would like to use R since there are some statistical procedures that I need to use. However, I run into a problem when using the modulus operator %%. I am using R 2.2.1 and when I calculate modulus for large numbers (that I need with my problem) R gives me warnings. For instance if one does: a=1:40; 8^a %% 41 one
2006 Aug 01
2
R Reference Card and other help (especially useful for Newbies)
Hi all: Newbies (and others!) may find useful the R Reference Card made available by Tom Short and Rpad at http://www.rpad.org/Rpad/Rpad-refcard.pdf or through the "Contributed" link on CRAN (where some other reference cards are also linked). It categorizes and organizes a bunch of R's basic, most used functions so that they can be easily found. For example, paste() is
2010 Dec 26
1
Calculation of BIC done by leaps-package
Hi Folks, I've got a question concerning the calculation of the Schwarz-Criterion (BIC) done by summary.regsubsets() of the leaps-package: Using regsubsets() to perform subset-selection I receive an regsubsets object that can be summarized by summary.regsubsets(). After this operation the resulting summary contains a vector of BIC-values representing models of size i=1,...,K. My problem
2007 May 21
4
How to compare linear models with intercept and those without intercept using minimizing adjs R^2 strategy
Dear R-list, I apologize for my many emails but I think I know how to desctribe my problem differently and more clearly. My question is how to compare linear models with intercept and those without intercept using maximizing adjusted R^2 strategy. Now I do it like the following: > library(leaps) > n=20 > x=matrix(rnorm(n*3),ncol=3) > b=c(1,2,0) > intercept=1 >
2010 Feb 12
1
all possible subsets, with AIC
Hello, I have a question about doing ALL possible subsets regression with a general linear model. My goal is to produce cumulative Akaike weights for each of 7 predictor variables-to obtain this I need R to: 1. Show me ALL possible subsets, not just the best possible subsets 2. Give me an AIC value for each model (instead of a BIC value). I have tried to do this in library(RcmdrPlugin.HH),
2009 Mar 11
1
regsubsets() [leaps package] - please share some good examples of use
Hello dear R-help members, I recently became interested in using biglm with leaps, and found myself somewhat confused as to how to use the two together, in different settings. I couldn't find any example codes for the leaps() package (except for in the help file, and the examples there are not as rich as they could be). That is why I turn to you in case you could share some good tips and
2012 Dec 05
1
alternative to leaps command
Dear UseRs, I wanted to know that i have been using "leaps" for the proper models selection for my work. I read so many articles from internet which categorically outlined that "leaps" command for model selection should never be used as its not efficient. Moreover, as a matter of fact, i personally noticed that the accuracy of "leaps" package is very much
1999 Nov 16
1
Installation of package fails (PR#328)
Full_Name: Thomas Langhans Version: 0.65 OS: Solaris 7 Submission from: (NULL) (129.217.131.31) I tried to install the package "leap" on our Sun Enterprise 400 running Solaris 7, but it fails: cause the g77 doesn't compiles the fortran-sources properly, I translated them with f2c to c-source. Running R INSTALL produces the following message: Installing package `leaps' ...
2002 Jan 31
1
Leaps and bound
Hi, I used the bic.surv function, S-PLUS functions developed by Chris Volinsky http://www.research.att.com/~volinsky/bma.html, without problems with S-PLUS. I have to use it with R but I am face with a problem: this function call a fortran routine named "leaps" (answer <- .Fortran("leaps", arguments)). I loaded the leaps library, and the leaps function work well with my R,
2005 Jul 27
4
R Reference Card (especially useful for Newbies)
Newbies (and others!) may find useful the R Reference Card made available by Tom Short and Rpad at http://www.rpad.org/Rpad/Rpad-refcard.pdf or through the "Contributed" link on CRAN (where some other reference cards are also linked). It categorizes and organizes a bunch of R's basic, most used functions so that they can be easily found. For example, paste() is under the
2005 Mar 02
1
Leaps & regsubsets
Hello I am trying to use all subsets regression on a test dataset consisting of 11 trails and 46 potential predictor variables. I would like to use Mallow's Cp as a selection criterion. The leaps function would provide the required output but does not work with this many variables (see below). The alternative function regsubsets should be used, but I am not able to define the function in
2004 Dec 10
3
R Reference Card (especially useful for Newbies)
Newbies (and others!) may find the R Reference Card made available by Tom Short and Rpad at http://www.rpad.org/Rpad/Rpad-refcard.pdf useful. It categorizes and organizes a bunch of R's (S's) basic, most used functions so that they can be easily found. For example, paste() is under the "Strings" heading and expand.grid() is under "Data Creation." For newbies
2000 Aug 29
1
Newbie question: Linear regression with error bars.
Hello guys, I am a total newbie on R, having downloaded it, read the documentation and started playing with it right now. My general question is what 'lr' model can be used for doing a linear regression on points that have a variance associated with them (ie. Monte Carlo simulation results). Actually my Data sets look like: Timestep Energy Variance_of_the_Energy 0.0005 -14.876840
2009 Nov 07
2
Rpad and R 2.10.0
I have problems with Rpad and R 2.10.0 (Windows XP and Windows 7, browser is Firefox) Just starting Rpad by library(Rpad) Rpad() opens the browser and displays the .html files and the .Rpad files in my home directory, but these files do not have links and are not clickable. Doing the same in R 2.9.2 gives clickable links in the browser. Furthermore, in both cases an empty graphics window
2006 Jun 17
1
Having a go at Rpad
Context: FreeBSD 6.1on a pentium 4; apache 2 server up & running; mod_perl installed; java & php 4 working. Willing to use Rpad on an office intranet, I installed the Rpad package (R2HTML was still there) and carefully read the instructions to set up a server. Now, on the server I can start the http://localhost/Rpad homepage, I can click on and browse the three examples
2012 Jul 24
1
getting error in Rpad::json()
Hi, I am trying to convert an R object to JSON, using Rpad::json. I get the following error when there is an empty vector in there. Using R version 2.15.0 (2012-03-30) on OpenSUSE 11.4 on an Intel machine; Rpad - 1.3.0 >Rpad::json(numeric(0)) > class(Rpad::json(numeric(0))) [1] "json" > Rpad::json(list(x=numeric(0))) Error in res[i] <- json(x[[i]]) : replacement has
2006 Jul 07
1
Rpad Server Installation on Windows XP
Hello, I have a question about Rpad Server Installation on Windows XP. Here is a guide http://www.rpad.org/Rpad/ServerNotes.html and I have been reading this more than ten times to figure this out, but still having trouble executing a Rpad website properly. Problem: for example, if I go to http://loclhost/Rpad/example1.rpad, I can see the whole website with the page loading sign staying on
2007 May 26
1
Rpad examples having problems with local server
Hi, this is Charlie. I have installed the Rpad on my server (using Fedora Core 6 with httpd2.24-2, mod_perl 2.0.2-6.1, perl 5.8.8 from RPM). When I access to the Rpad (through http://localhost/Rpad/basehtml), it shows me the main page as normal, however, problems occurs when I am testing the examples. It shows me a long message like: ----------------------------------------- #!/usr/bin/perl -w
2009 Jun 06
1
Rpad - avoid removal of manually created html-tags in R chunk
Dear Rpad-users, currently I am setting up a web page using Rpad (www.rpad.org). But I have a problem with generating dynamic html-output in the Rpad chunk. Here an example of my problem: I have the following index.html file: <html> <head> <title>example</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">