similar to: Newbie: How to produce lm results at sub-level within df

Displaying 20 results from an estimated 8000 matches similar to: "Newbie: How to produce lm results at sub-level within df"

2009 Oct 18
1
function to convert lm model to LaTeX equation
Dear list, I've tried several times to wrap my head around the Design library, without much success. It does some really nice things, but I'm often uncomfortable because I don't understand exactly what it's doing. Anyway, one thing I really like is the latex.ols() function, which converts an R linear model formula to a LaTeX equation. So, I started writing a latex.lm() function
2008 Feb 12
2
Uninstall registry key the same for all versions (PR#10746)
Full_Name: Gerhard Thallinger Version: R 2.2.0 through R 2.6.2 OS: Windows XP Submission from: (NULL) (129.27.145.220) The uninstall key in the Windows Registry (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\) is the same ("R for Windows_is1") for all R versions (at least from 2.2.0 to 2.6.2). This prohibits managing multiple R versions in a clean way, since the
2013 May 05
1
slope coefficient of a quadratic regression bootstrap
Hello, I want to know if two quadratic regressions are significantly different. I was advised to make the test using step 1 bootstrapping both quadratic regressions and get their slope coefficients. (Let's call the slope coefficient *â*^1 and *â*^2) step 2 use the slope difference *â*^1-*â*^2 and bootstrap the slope coefficent step 3 find out the sampling distribution above and
2014 Nov 05
2
[PATCH] Early request for comments: U2F authentication
Hey, Recently, the FIDO alliance announced U2F [1], and Google announced that it supports U2F tokens (?security keys?) for Google accounts [2]. As the spec is not a very short read, I gave a presentation last week about U2F which may be a good quick introduction to the details [3]. For the rest of this mail, I?ll assume that you read either my presentation or the spec, but feel free to post any
2007 Nov 12
1
Microsoft SOAP - Help!!
Hello, I am trying to access Microsoft Live Search Using SOAP through R. In R I am using the RCurl packages to make the calls. I have the following situation that looks crazy and cannot figure out how to solve it: #SOAP Request library(RCurl) h = basicTextGatherer() body='<?xml version="1.0" encoding="ISO-8859-15"?> <SOAP-ENV:Envelope
2008 Aug 17
1
MDF filter coefficients
Hi, I would like to compute the inverse FFT of the MDF coefficients. I have noticed that some coefficients are obviously missing since I do not see the mirror effect, neither find the purely real frequency 0 coefficent that have to be found for a "real" signal. I guess the frequency 0 coefficient is 0 (average energy 0), but how should I do the mirroring and how many coefficients should
2013 Jan 23
4
how to read a df like that and transform it?
Dear all I have a data.frame like that : father mother num_daughter daughter 291 3906 0 NULL 275 4219 0 NULL 273 4236 1 49410 281 4163 1 49408 274 4226 1 49406 295 3869 2 49403 49404 287 4113 0 NULL 295 3871 1 49401 292 3895 4 49396 49397 49398 49399 291 3900 3 49392 How to read it into R and transform it like that: father mother num_daughter
2010 Apr 21
2
R crashing oddly
Hi, I am working with the package nlme, and I tried creating a new correlation class (which, according to the help pages, is possible if you write a few new method functions). Anyways, I think I am 99% of the way there, but I have a recurring problem with R crashing on seemingly innocuous statements (I have set debug() on nearly every function, so I can see where it is failing). For instance,
2003 Sep 04
1
error in lm.fit
Hello R user, I have several data frames with >100 columns and I did a linear regression over time of each column df1.lm <- lapply(df1, function(x) lm(x~year)$coeff[2]) that worked fine and I get slope of each column oder time - until I divided df1 by df2 df3 <- df1/df2 > df3.lm <- lapply(df3, function(x) lm(x~year)$coeff[2]) Error in lm.fit(x, y, offset = offset, ...) :
2013 Nov 24
2
Sysinux 6 will not boot ISOs on BIOS (i.e. pre-UEFI) systems
On 11/24/2013 09:56 AM, Ady wrote: >> The very early code that emits this message is *identical* between >> Syslinux 4 and Syslinux 6. The biggest difference is the size of >> isolinux.bin, so it is possible that that might be the source of the >> problem. >> >> -hpa > > I wonder if isolinux.bin should be limited to max. 16 sectors (of > 2KiB
2010 Oct 25
2
Question on passing the subset argument to an lm wrapper
Hello, How would you go about handling the following situation? This is on R 2.12.0 on Ubuntu 32-bit. I have a wrapper function to lm. I want to pass in a subset argument. First, I just thought I'd use "...". ## make example reproducible set.seed(123) df1 <- data.frame(age = rnorm(100, 50, 10), bmi = rnorm(100, 30, sd = 2)) ## create a wrapper using
2000 Jul 17
3
Code for Coefficent (Cronbach's) Alpha
Hi all, I am trying to teach myself to use and program R (How else do you do it? lol) Anyway, I wrote a piece of code to compute coefficent alpha for a scale. As I am neither a statistician nor a programmer, I wanted people's feedback. The code appears to work (Win 95 with R 1.0.1) and I have verified my result with SPSS and it was correct (much to my astonishment!). Nonetheless, I am
2010 Apr 27
2
when setting environment: target of assignment expands to non-language object
Hi, I am trying to place my own functions in the nlme environment: The following statement works: environment(coef.corSPT) <- environment(getS3method("coef","corSpatial")) but this one returns an error: environment(get("coef<-.corSPT")) <- environment(getS3method("coef<-","corSpatial")) Error in
2008 Jun 05
2
qf with infinite df
Dear all, I found the following behaviour > rf(5,Inf,Inf) [1] 1 1 1 1 1 but > qf(0.1,Inf,Inf) [1] NaN Warning messages: 1: In qf(0.1, Inf, Inf) : value out of range in 'lgamma' 2: In qf(p, df1, df2, lower.tail, log.p) : NaNs produced incidentally, > pf(1.00000000000001,Inf,Inf) [1] 1 > pf(1.0000000000000001,Inf,Inf) [1] 0.5 Is this the expected behaviour? Thanks
2009 Dec 30
1
lm() and factors appending
How for the love of god can I prevent the lm() function from padding on to my factor variables? I start out with 2 tables: Table1 123123 124351 ... 626773 Table2 Count,IS_DEAD,IS_BURNING 1231,T,F 4521,F,T ... 3321,T,T Everything looks fine when I import the data. then we get a oh_crap <- lm(table1 ~ Count + IS_DEAD + IS_BURNING, table2) Magically when I look at my oh_crap coefficents
2005 Feb 14
1
strange display effects
hi, I'm trying to get this app running under wine http://appdb.winehq.org/appview.php?appId=2002 It is a free Austrian accounting software. So far I have managed to install it and even use it to some degree but I have some strange optical "sideeffects": #1: the menu bar on the right side duplicates, see screenshot here: http://www.bestsolution.at/documents/eufibu_wine01.jpg #2:
2012 Sep 26
5
create new column in a DF according to values from another column
Hi everyone, I have a small problem in my R-code. Imagine this DF for example: DF <- data.frame(number=c(1,4,7,3,11,16,14,17,20,19),data=c(1:10)) I would like to add a new column "Station" in this DF. This new column must be automatically filled with: "V1" or "V2" or "V3". The choice must be done on the numbers (1st column). For example, I would like
2020 Mar 17
2
strange bahaviour of predict.lm
Hello, Below is my code: > A <- matrix(rnorm(10*3),ncol=3) > b <- runif(10) > reg <- lm(b ~ A) > A1 <- matrix(rnorm(5*3),ncol=3) > A1 <- as.data.frame(A1) > b1 <- predict(reg,A1) Warning message: 'newdata' had 5 rows but variables found have 10 rows ? And instead of being an array of length 5, b1 is of length 10 and is identical to reg$fitted.values I
2006 Feb 20
1
[Old Games]:Colonization
Hello, I am trying to use wine in order to play to some olds games. I try with Sid Meier's colonization (http://appdb.winehq.org/appview.php?appId=720) http://www.abandonware-france.org/ltf-jeu.php3?id=439 I am having the following error message. PS: I only get wine from the RPM without any particulare configuration. -- -- I have a Mandrake 2006.0 community. Version de KDE : 3.4.2
2010 Nov 09
2
new column from column in another df
If I have a data frame where a species occupies several rows with different phases such as (both col's ar factors): species,phase Populus tremula,1 Populus tremula,2 Populus tremula,3 Calluna vulgaris,1 Calluna vulgaris,2 Betula alba,1 Betula alba,2 Betula alba,3 Primula veris,1 Primula veris,2 and another df where each species only have one row: species,growth_form Populus tremula,tree Acer