### [R] (no subject)

Yes, you can, as documented in ?connections, but on the Mac you would have to use: read.delim(pipe(pbpaste)) You can also use pbcopy to copy to the clipboard. Dear R users, I am trying to get data from the clipboard into R on MacOSX. I tried the following, but got an error message:

### [R] Importing data from clipboard on Mac OSX

Oops, forgot to include the Subject. sorry for that sloppiness. Yes, you can, as documented in ?connections, but on the Mac you would have to use: read.delim(pipe(pbpaste)) You can also use pbcopy to copy to the clipboard. Dear R users, I am trying to get data from the clipboard into R on

### Re: [R] Simulations in R during power failure

On 27-Aug-06 mel wrote: [EMAIL PROTECTED] a écrit : Hi everyone, I recently ran a simulation on a computer using R that was hooked up to a UPS. There was one time when the power was out for length and the computer shut down. I was worried that I had lost the simulation, but upon booting

### Re: [R] Type II and III sum of square in Anova (R, car package)

I think this starts from the position of a batch-oriented package. In R you can refit models with update(), add1() and drop1(), and experienced S/R users almost never use ANOVA tables for unbalanced designs. Rather than fit a pre-specified set of sub-models, why not fit those sub-models that

### Re: [R] Permanently changing gui preferences

On Sat, 26 Aug 2006, David Kaplan wrote: Greetings, I made changes to my gui preferences and saved them. When I close and then open R, it reverts back to default preferences. How do I permanently change gui preferences? Which 'gui' is this? If it is Rgui under Windows, the 'GUI

### Re: [R] Modifying the embed-results

On 8/27/06, Atte Tenkanen [EMAIL PROTECTED] wrote: Thanks! I see, that do.call-function is used often in R-algorithms... Looking over some extra do.call-examples seems useful. This tail-function is also new for me. Is there some reason to use seq(along = VECTOR) instead of

### Re: [R] Type II and III sum of square in Anova (R, car package)

Dear Amasco, A complete explanation of the issues that you raise is awkward in an email, so I'll address your questions briefly. Section 8.2 of my text, Applied Regression Analysis, Linear Models, and Related Methods (Sage, 1997) has a detailed discussion. (1) In balanced designs, so-called Type

### Re: [R] Importing data from clipboard on Mac OSX

Hi Rense, Not sure how robust this is, but maybe to get you started: In R console: a - 1:10 Copy that line to or part of it to the clipboard. system(osascript -e 'set y to the clipboard' -e 'tell application \R.app\ to cmd y') If course you could use this in an R function. I would opt

### [R] refer to objects with sequential names

Dear Listers, If I have several glm objects with names glm1, glm2 and want to apply new data to these objects. Instead of typing predict(glm1, newdata)... 100 times, is there way I could do so in a loop? Thank you so much! wensui [[alternative HTML version deleted]]

### Re: [R] refer to objects with sequential names

Assuming newdata is the same for all the models and is included in a data.frame called New: list_glm - paste(glm, 1:10, sep = ) sapply(list_glm, function(x) predict(get(x), newdata = New)) Best, Renaud 2006/8/27, Wensui Liu [EMAIL PROTECTED]: Dear Listers, If I have several glm objects

### [R] S4 documentation - Was: exact Wilcoxon signed rank test

Torsten Hothorn Torsten.Hothorn at rzmail.uni-erlangen.de writes: ... indeed, this is the only gap to be filled in `coin', I just haven't had the time to implement this. And of course, `exactRankTests' is still available and will be available in the future. So you _can_ use it!

### Re: [R] Can R compute the expected value of a random variable?

On 8/26/06, Mike Nielsen [EMAIL PROTECTED] wrote: Yes. Can R compute the expected value of a random variable? Mike: thank you very much indeed for your so insightful and complete answer. I have meanwhile deepened my research and, as a consequence, I have found the following solution, which

### Re: [R] Can R compute the expected value of a random variable?

General questions elicit general answers; more specific questions elicit more specific answers.For example, exp(2+9/2) [1] 665.1416 url:www.econ.uiuc.edu/~rogerRoger Koenker email [EMAIL PROTECTED] Department of Economics vox:217-333-4558

### Re: [R] Can R compute the expected value of a random variable?

On 8/27/06, Paul Smith [EMAIL PROTECTED] wrote: On 8/26/06, Mike Nielsen [EMAIL PROTECTED] wrote: Yes. Can R compute the expected value of a random variable? Mike: thank you very much indeed for your so insightful and complete answer. Answers are often in proportion to the questions

### Re: [R] Total (un)standardized effects in SEM?

Dear John, thank you very much for your reply. The suggestions you make for calculating the direct and indirect effects are exactly what I was looking for. Although I'm very new to SEM and not at all very experienced in R, I tried to put them together in a function (called decomp) and

### Re: [R] covariance matrix of predictions

Hi, If I understand correctly the Var(X \hat{\beta}) = X (X'X)^{-1}X' \sigma^2, where X will now be x.pred. Which should be easily obtained by performing the matrix computation and multiplying it with the estimate of the variance. For more details about different aspects of the estimate and

### Re: [R] Total (un)standardized effects in SEM?

Dear Rense, I already wrote a function, appended below, to compute effects for SEMs, as a method for the effects() generic. I've been thinking about adding this to the sem package, possibly with asymptotic standard errors computed by the delta method, as suggested by Michael Sobel. If I do so, I

### Re: [R] two density curves in one plot?

Hi Gabor and Dimitris, I was wondering if this question was frequent enough to be in the R FAQ under R Miscellanea and thought of something like this Q. How do I plot two curves on the same graph? A. Plot the first curve using the plot() command and add lines using lines(). For example d1 -

### [R] Download problems

Hallo, I am a new user of 'R'. I have been trying to download it onto my Mac (OSX 2.8). For some reason it seems to download ok and look ok but then it doesn't actually open. Can somebody help me this? Felicity __ R-help@stat.math.ethz.ch mailing list