similar to: Repating a loop of lm function with different columns of database

Displaying 20 results from an estimated 100 matches similar to: "Repating a loop of lm function with different columns of database"

2012 Jan 31
2
question of merging two dataframes
Suppose I have two data frames A and B A has three variables and B also has three variables. I would like to merge these two database but the requirement to merge is that the value of the second column in database A is less than the value of the second column in database B. Is there a R code to do this? Thanks Dataframe A: V1a V2a V3a 1 2 3 5
2012 Dec 14
2
Manipulation of longitudinal data by row
I have a dataset of the form below, consisting of one unique ID per row, followed by a series of visit dates. At each visit there are values for 3 dichotomous variables. Of the 8 different possible combinations of the three variables, 4 are "abnormal" and the remaining 4 are "normal". Everyone starts out abnormal, and then either continues to be abnormal at subsequent visits,
2023 Jan 26
2
Resumen de R-help-es, Vol 167, Envío 10
Hola esta es una solución library(data.table) library(stringr) dt <- data.table( V1a = sample(c("1","0"), 10, TRUE) , V1b = sample(c("1","0"), 10, TRUE) , V2a = sample(c("1","0"), 10, TRUE) , V2b = sample(c("1","0"), 10, TRUE) , V3a =
2023 Jan 27
0
Resumen de R-help-es, Vol 167, Envío 10
Hola: Muchas gracias por responder. Lo pruebo. Saludos. On Fri, 27 Jan 2023 01:40:48 +0100 Carlos Ortega <cof en qualityexcellence.es> wrote: > Hola, > > Otra alternativa... > > #-------------------- > > library(data.table) > > library(tidytable) > > library(stringi) > > > > df <- data.frame( V1a =
2023 Jan 28
0
Resumen de R-help-es, Vol 167, Envío 10
Hola, Carlos: Gracias, funciona también a la perfección y muy ingeniosa la solución. Disculpa si no te he respondido antes, pero hasta ahora no he podido privarlo. Gracias por la ayuda y saludos. On Fri, 27 Jan 2023 01:40:48 +0100 Carlos Ortega <cof en qualityexcellence.es> wrote: > Hola, > > Otra alternativa... > > #-------------------- > > library(data.table)
2005 Jan 12
2
Inaccuracy in seq() function (PR#7503)
Full_Name: Vlad Stolin Version: R 2.0.0 OS: Windows 2000 Submission from: (NULL) (204.128.232.211) When generating the sequence using seq() function with non-integer numbers result is somewhat unpredictable. Example: > v1<-seq(1.60,1.90,.05) > v2<-c(1.60,1.65,1.70,1.75,1.80,1.85,1.90) > v1-v2 [1] 0.000000e+00 2.220446e-16 2.220446e-16 0.000000e+00 0.000000e+00 0.000000e+00
2004 Aug 10
1
Help with Normal Range Estimation for repated measures
I would be grateful if members of the list could point me in the direction of any code (preferably in R) that will allow me to estimate 95th percentiles from a set of repeated measurements. For example, we are interested in a clinical measurement where we have 3 measures for 14 subjects and 2 measurements on 24 subjects and single measurement on 36 subjects. We want to combine these to form a
2011 Aug 28
1
Trying to extract probabilities in CARET (caret) package with a glmStepAIC model
Dear developers, I have jutst started working with caret and all the nice features it offers. But I just encountered a problem: I am working with a dataset that include 4 predictor variables in Descr and a two-category outcome in Categ (codified as a factor). Everything was working fine I got the results, confussion matrix etc. BUT for obtaining the AUC and predicted probabilities I had to add
2005 Jan 29
7
Sipura SPA-841 auto-answer support [patch]
Sipura has implemented auto-answer in version 0.9.5 of the SPA-841 firmware. However, it is implemented via the Call-Info header, which Asterisk stable doesn't currently support. The attached patch implments a quick hack to support the Call-Info header from the Dial() application by way of setting the CALL_INFO variable. For example, the following macro can be used to dial up a single
2011 Aug 26
1
Predictions from a logistic regression model with validation for ROCR
Dear experts, I am looking for a package that does logistic regression with corssvalidation and gives me the probabilites of all the corssvalidations so that I can plot them in ROCR. Would also like to know if the corssvalidate model would give me a summary coefficient for the intercept and my to predictors. Thank you. Best regards, Jon Toledo, MD Postdoctoral fellow University of Pennsylvania
2003 Nov 24
0
PR#2894
I came across the message below and decided to respond. I don't use R but I do use other FSF products and I am a believer in making high quality software freely available, particularly for basic mathematical and statistical functions. I can thorougly recommend TOMS Algorithm 708 but I believe there are a couple of problems from you point of view. Firstly there may be restrictions on how it
2015 Nov 05
3
How to encode plus sign in REGEX function in dialplan?
Dear all, I have made a fairly complex dialplan where I am using the REGEX function in many places. This works so far, but I wasn't able to solve the following problem. What I would like to do is the following (please note that this is normal regex syntax and obviously not what the REGEX function expects, but I hope it shows the idea): same => n(A1), GotoIf($[${REGEX("^\+49.*"
2013 Feb 26
1
Getting the correct factor level as Dunnett control in glht()
Hello all, I would like to do a Dunnett test in glht(). However, the factor level I want to use as the control is not the first. dunn1<-glht(model3, linfct = mcp(Container = "Dunnett"), alternative = "less") The factor container has 8 levels, so it would be nice not to manually enter in all of the contrasts. I originally discovered glht() when working with a glm model
2003 Jul 16
0
Problems with samba shares on a Jffs Filesystem...Hard Hat Linux 2.1 on a MPC860...
Hi! Could you help me about a problem with Jffs Filesystems and Samba...? Fitst of all, we are working on a MBX860 board with a MPC860 micro and our Linux OS is Hard Hat Linux PPC 2.1. We compiled/configured the Samba 2.2.4 on our system wihout problem with a gcc 2.96 version... ...we have a folder on a Jffs Filesystem on our second flash partition (1 MB size and 800 KB free); this folder
2006 Jun 21
1
eliminating a do loop
Using a "by() statement, I am preparing ANOVA's for multiple experiments, and using simint() to generate confidence intervals. This works fine. simint.by.fit <- by(analytes.dfr, list(Assay = analytes.dfr$analyte ), function(data) (simint(value ~ tx, data = data,type='Tukey' ) ) ) I can separately prepare plots of the confidence intervals, and I can prepare separate plots
2007 May 31
1
Choosing a column for analysis in a function
Hello all, I'm having a problem concerning choosing columns from a dataset in a function. I'm writing a function for data input etc., which first reads the data, and then does several data manipulation tasks. The function can be then used, with just giving the path of the .txt file where the data is being held. These datasets consists of over 20 different analytes. Though, statistical
2012 Aug 27
1
practical way to change column names?
Dear R helpers, I have a social network data including repated measures of ten alters (whom you contact) and their attributes(gender, age, strength of tie). I wrote variables related with alters just for wrote alter 1 and alter 2. I'd like to change the like below. I'd change each name separetely. Do you know any pratical way to change it? All the bests, Niklas variables for alter 1
2011 Feb 12
2
Test for equivalence
Hi! is there a way in R to check whether the outcome of two different experiments is statistically distinguishable or indistinguishable? More preciously, I used the wilcoxon test to determine the differences between controls and treated subjects for two different experiments. Now I would like to check whether the two lists of analytes obtained are statistically distinguishable or
2006 Apr 11
1
Centos 4.x, gnome & key "repeating"
Hi, I have a strange problem with Centos 4 (all kernels so far). When i am running gnome (havent tried KDE) and i go into a browser or even just a console window and type something a letter repeates it self 10-20 times (likeeeeee thhhhhhissssss). I can turn this of the the keyboard settings (repeating keys) but then i cant hold down backspace and so on ....I think this is some kind of
2011 Apr 08
1
Estimates at each iteration
Dear Sir\ Madam  I am trying to maximise a complicated loglikelihood function  via EM algorithm which consists of two step "E-step and M-step"and in this case I need to maximize the expected of like lihood function " which I get from E- step" and take those estimates of parameter to update the E-step and repate these till convargence has been met. So I need to know if I