similar to: searching R-help within a function

Displaying 20 results from an estimated 1100 matches similar to: "searching R-help within a function"

2005 Jan 21
6
dim vs length for vectors
Hi all, I'm not sure if this is a feature or a bug (and I did read the FAQ and the posting guide, but am still not sure). Some of my students have been complaining and I thought I just might ask: Let K be a vector of length k. If one types dim(K), you get NULL rather than [1] k. Is this logical? Here's the way I explain it (and maybe someone can provide a more accurate
2004 Apr 16
1
install.packages
install.packages works for Linux because the directory structure is not version dependent, as it is for the Windows download. That should be fixed as soon as my sys admin consents to install R 1.9.0 so we can do the cross compile. Of course, you are right, Martin and Peter, that Zelig should be on CRAN proper. We just need to write a few .Rd files to be compliant with R check, and change our
2003 Oct 26
1
commenting demos
Hi, Is there a way to make demo() print comments along with the code and output? For example, if I use something like readline("..."), demo prints both readline("...") and ...; as far as I can tell, this is also true of print() and cat(). I just want students to stop and think about every command in my demo scripts. Thanks, Olivia.
2003 Aug 06
1
demo() function returns alphabetical matches, not unique matches?
Hi, I'm working on a set of demo files for a package, and I'm having a problem because I have two demo files (one called "logit", the other called "blogit") and when I type demo(logit), it gives me demo(blogit) instead. (And calls it the the demo for logit.) I've figured out that this is because the demo() function searches through all the demo directories (in
2003 Oct 11
1
boot statictic fn for dual estimation of 2 stats?
Hi, I am trying to use boot() to refit an ordinal logit (polr in MASS) model. (A very basic bootstrap which samples from the data frame without replacement and updates the model.) I need to extract two statistics per run (the coefficients and zeta) and I tried concatenating them into a single vector after fitting, but I get the following error: Error in "[<-"(*tmp*, r, ,
2005 Nov 16
1
normal cdf over an interval
Hi, I'm trying to find a way to take evaluate the Normal CDF over an interval and return the result on the log scale. This works, but I think it isn't numerically stable: log(pnorm(a, mean = x, sd = y) - pnorm(b, mean = x, sd = y)) Does anyone know of a single function that does the above? Or knows of a way to make it more stable? I'd really appreciate any suggestions!
2003 Jan 08
1
Lattice: Plotting two densities on the same plot(s)?
I am trying to plot two density lines on the same graph. Using the functions on the base package, I would go: plot(density(x), col = 1) lines(density(y), col = 2) And I get two distinct (one-bump) density lines. When I try to do it using lattice, I get two two-humped lines. (In other words, I think the smoothing function is taking the next set of data points and smoothing them in the same
2011 Apr 26
2
Wish R Core had a standard format (or generic function) for "newdata" objects
Is anybody working on a way to standardize the creation of "newdata" objects for predict methods? When using predict, I find it difficult/tedious to create newdata data frames when there are many variables. It is necessary to set all variables at the mean/mode/median, and then for some variables of interest, one has to insert values for which predictions are desired. I was at a
2007 Mar 26
1
Problem in loading all packages all at once
Hi All Please see the Rprofile file which i have modified as follows and after that when I start R then I see that R says to me "TRUE" for all the packages implying that all loaded at once. But when i try to use commands as simple as help("lm"), it doesnt work nor any of the menu "Packages" is not working. Although the regression using lm ( Y ~ X ) is working
2003 Jul 28
3
Recommended way to change defaultPackages under Windows
What is the recommended way to change the default set of packages that are loaded at startup by R for Windows? I am writing vignettes for the Devore6 package which my introductory engineering statistics students will use and I would like to describe how the R environment can be changed so that this package is loaded by default. I understand from the R for Windows FAQ that one way would be to
2003 Jun 13
1
(no subject)
Dear collegues, Using maxstat I am getting the following: > blood <- maxstat.test(Surv(SUPER, FV)~ZAP,data=zap70, smethod="LogRank") Error in maxstat(y = structure(c(24.4301369863014, 26.4164383561644, 18.7835616438356, : couldn't find function "cscores" I do not know the meaning of this problem. Could you please help me on dat? Thank you in advance for your
2003 Aug 12
1
Programme Maxstat
Sirs, I have recently been interested in your Maxstat. I have computed with my own programme the ranks (by using the Kaplan-Meier method and the log-rank test) with the formula (Observed-Expected)/(SQR Var). The results are similar but not exact to the M value obtained with the Maxstat. I would like to know whether you are using some correction or adjustment in computing the different ranks. Thank
2013 Mar 21
2
remote connection issue 'virsh -c qemu+ssh:///root@localhost/system list'
Hi, I'm trying remote connection with qemu hypervisor on FSL PPC board. The libvirt server is the PPC board. root at ppc:~# ifconfig eth0 10.193.20.109 root at ppc:~# libvirtd -d root at ppc:~# virsh -c qemu:///system define test.xml root at ppc:~# virsh -c qemu:///system start test root at ppc:~# virsh -c qemu:///system list --all Id Name State
2008 Jun 13
2
Maximum likelihood estimation in R with censored Data
Hello, I'm trying to calculate the Maximum likelihood estimators for a dataset which contains censored data. I started by using the function "nlm", but isn't there a separate method for doing this for e.g. the "weibull" and the "log-normal" distribution? Thanks, Olivia [[alternative HTML version deleted]]
2013 Apr 09
2
fail to convert qemu xml to args with libvirt-1.0.4: An error occurred, but the cause is unknown
Hi, I used to convert qemu XML to args with libvirt-1.0.3. But it failed to convert with libvirt-1.0.4. # virsh domxml-to-native qemu-argv test.xml >test.sh error: An error occurred, but the cause is unknown Comparing the debug file as below: 1) lbvirt-1.0.3 <cut> 2013-04-09 03:23:47.296+0000: 2669: debug : virEventPollInterruptLocked:716 : Interrupting 2013-04-09 03:23:47.296+0000:
2005 Dec 23
1
dse package problems
I am having problems with the package dse. I just installed R 2.2.1 and reinstalled all packages. I am running Windows XP Pro with all updates. Below there are two examples of error messages generated when trying to execute some simple programs. The code was taken directly from the package documentation. Any help on this will be greatly appreciated. Merry Christmas Fernando
2007 Aug 14
2
State Space Modelling
Hey all, I am trying to work under a State Space form, but I didn't get the help exactly. Have anyone eles used this functions? I was used to work with S-PLUS, but I have some codes I need to adpt. Thanks alot, Bernardo [[alternative HTML version deleted]]
2004 Feb 26
1
unable to install dse in mac OS X 10.3
I would like to request help with the installation of dse in raqua in mac os x 10.3. I get the following error message after the messages indicating that parts were successfully installed. I would be most grateful for a solution. ----------------------------------------- * Installing *source* package 'setRNG' ... ** R ** inst ** help >>> Building/Updating help pages for
2001 Jan 10
1
optmizing with monotone stepfunctions?
Before re-inventing the wheel I would like to ask: does anyone know about an optimizer in R which can reliably identify which value of X (Xopt) leads to Y (Yopt) closest to Ytarget in Y <- MonotoneStepFun(X) optionally with the restriction that Yopt <= Ytarget (at least if any Y <= Ytarget, otherwise any Yopt > Ytarget would be the preferred answer) If none is known, I will write
2005 Jul 11
2
Misbehaviour of DSE
Folks, I am finding problems with using "dse": > library(dse1) Loading required package: tframe Error: c("package '%s' required by '%s' could not be found", "setRNG", "dse1") > library(dse2) Loading required package: setRNG Error: package 'setRNG' could not be loaded In addition: Warning message: there is no package called