Displaying 20 results from an estimated 900 matches similar to: "Help with lm and multiple linear regression? (Plain Text version)"
2007 Dec 27
0
Help with lm and multiple linear regression?
Hello,
I'm new to R, but I've read the intro to R and successfully connected it to an instance of mysql. I'm trying to perform multiple linear regression, but I'm having trouble using the lm function. To start, I have read in a simply y matrix of values(dependent variable) and x matrix of independent variables. It says both are data frames, but lm is giving me an error that my
2013 Apr 01
1
polygon error
Hello all!
I have a problem to draw a polygon with R. My data is like this>
Year Nb.series Perc.pos Perc.neg Nature RGV_mean RGV_sd neg poz
1 1901 1 0.00 0.00 0 4.29 NA 0.00 0.00
2 1902 1 100.00 0.00 1 16.47 NA 0.00 100.00
3 1903 1 100.00 0.00 1 31.31 NA 0.00 100.00
4 1904 1 0.00 0.00 0 -9.62 NA 0.00 0.00
5 1905 1 0.00 100.00 -1 -22.55 NA -100.00 0.00
6 1906 1 0.00 100.00 -1 -12.09 NA
2017 Nov 15
2
R6 object that is a list of referenced object
Dear community,
I am having a class, let's say Person,
Person <- R6Class("Person",
public = list(
idPerson = NULL,
name = NULL,
age = NULL,
initialize = function(idPerson = NA, name = NA, age = NA) {
self$idPerson <- idPerson
2020 Oct 05
2
S4 - inheritance changed by order of setClassUnion and setAs()
Dear colleagues,
there is a behaviour with S4 (virtual) classes that I find very hard to understand: Depending on the position
of setAs(), the tree of inheritance changes.
This is my baseline example that defines the classes "grandma", "mother", "daughter" and a virtual
class "mr_x". For a new instance if "daughter", "mr_x" is betweeen
2015 Aug 10
2
webrtc no audio
hello,
i'm facing strange problem
asterisk13.5 + chan_sip wss transport + SIPML5 1.5.230
person1 to person3 are behind different NATs
audio devices double checked
call from person1(chrome) to person2(chrome) works
call from person1(chrome) to person 3(chrome) - no audio on both side
(RTP flowing only in one direction)
call from person2(chrome) to person 3(chrome) - no audio on both side
2017 Nov 16
0
R6 object that is a list of referenced object
See below.
On Wed, 15 Nov 2017, Cristina Pascual wrote:
> Dear community,
>
> I am having a class, let's say Person,
>
> Person <- R6Class("Person",
> public = list(
> idPerson = NULL,
> name = NULL,
> age = NULL,
> initialize =
2020 Oct 06
0
S4 - inheritance changed by order of setClassUnion and setAs()
Andreas,
As far as I can tell (/conjecture), this is because the list of classes a
particular class inherits from directly is appended to as needed, and so
the order that a class extends others isd refined by the order that those
connections are defined.
We can see this with two setClassUnion calls, rather than required setAs:
> setClass("grandma", slots = c(a =
2012 May 09
12
Matrix heatmap
I would like to organize my data as follows:
I have a table that contains various data, and the numbers represent a level
of similarity between these data,
eg RF00013 has 100% similarity with the data RF00014.
I would leave my table as a heatmap where darker colors represent higher
similarity, and the lighter colors represent less level of similarity.
I'm using version 2.11 of R.
these
2007 Jan 23
4
weird undocumented extensions such as s-BUSY
I've seen several examples that use extensions such as;
s-BUSY
s-NOANSWER
etc...
It's more or less evident what they do, but I've searched for some
FORMAL documentation everywhere and have found nothing.
Do they work for anything else than "s-"? (I think I've seen other
examples, but can't find them now)
Are they standard in any way?
What are the allowed values
2006 Aug 12
1
has and belongs to many different?
Is there such a thing? I am thinking of an application that has
something like this:
1. person has many things - there is a ''persons'' table
2. the things he has are stored in a table that is something like this
person_id, thing_table_name, thing_id
For example, it may map to
person1, books, 23 #Person 1 owns book 23
person1, books, 25 #Person 1 owns book 25
2013 Apr 01
0
ggplot2 label problem
I have a problem to plot label (Year) only for significant values (in this
case spoz and sneg).
I use this code, but don't work with labels.
library(ggplot2)
ggplot(data1, aes(x = Year, y = value,fill=type,width=1))+
geom_bar(stat="identity",position="identity")+
scale_y_continuous(breaks = round(seq(-100, 100, by = 10),10))+
theme_bw()
Thank you!
the data used is:
2003 Dec 19
2
GotoIfTime help
Hey All,
I need to forward an extension to an other depending on the current
time but I could not get it done with GotoIfTime.
What I'm trying to do is ring on the extension 1 if time is between
8:00AM and 2:00PM and on extension 2 if is between
2:01PM 11:00PM.
exten => 111,1,GotoIfTime(8:00-14:00|*|*|1-12?333)
exten => 111,2,Dial(${Person1})
exten => 111,3,Dial(Hangup)
exten
2007 Dec 05
2
converting factors to dummy variables
Hi all -
I'm trying to find a way to create dummy variables from factors in a
regression. I have been using biglm along the lines of
ff <- log(Price) ~ factor(Colour):factor(Store) +
factor(DummyVar):factor(Colour):factor(Store)
lm1 <- biglm(ff, data=my.dataset)
but because there are lots of colours (>100) and lots of stores
(>250), I run it to memory problems. Now, not every
2004 Jun 06
4
Request help writing a function
I have been wrestling with this function for quite a while, and am not making headway.
1) I want to apply a function to the following columns of a dataframe:
myfunction. <- apply(ph5028[,c(83:107)],2,function(x) ...
2) Within each of the above columns there is a single numeric code, 1, 2 or 3 or an NA.
3) My goal is to determine the percent of time each person used a 2 code. So if a person
2008 Aug 08
1
Vista problem -- can't type commands at prompt
Hi All -
I recently moved to Vista and reinstalled R. I am able to run R as I
typically do (R.exe from the command prompt), and it can work well.
However, if I switch windows to, say, firefox or excel or anything
else, when I return to the R prompt it no longer works. I am able to
use the up and down arrow keys to access previous commands, but no
other key stroke has any impact.
As long as I
2006 Nov 16
2
.rdata files
Help! I accidentally saved my work as an .rdata format instead of .txt
I need to somehow get it saved as a .txt file otherwise i'm really in trouble!
Does anyone know how to convert .rdata to .txt files??
I also tried re-loading the file into R to see if i can re-save it but it doesnt work!
i've attached it below...
please help me asap! i need to turn it in as a .txt file
Thanks
2004 Jun 08
2
Recoding a multiple response question into a series of 1, 0 variables
Hello R folks.
1) The question that generated the data, which I call Qx:
Which of the following 5 items have you performed in the past month? (multipe response)
2) How the data is coded in my current dataframe:
The first item that a person selected is coded under a field called Qxfirst; the second selected under Qxsecond, etc. For the first Person, the NAs mean that that person only selected
2006 Aug 15
2
How to access attribute in a self-referential many-to-many relationship
Hello List,
I created a self-referential many-to-many relationship (as described
in the book Rails recipe #18), where I have a model that has
many-to-many relationships with itself. In this case, it''s person who
can become friends. The join table looks like this:
mysql> select * from friends_people;
+-----------+-----------+-----------+
| person_id | friend_id | confirmed |
2017 Nov 15
0
R6 object that is a list of referenced object
Dear community,
I am having a class, let's say Person,
Person <- R6Class("Person",
public = list(
idPerson = NULL,
name = NULL,
age = NULL,
initialize = function(idPerson = NA, name = NA, age = NA) {
self$idPerson <- idPerson
2017 Oct 18
1
conformal predictions
Dear community,
I want to use conformal prediction to measure how good are my svm-regression predictions (having used library e1071).
I have gone through the conformal package documentation. But I'm pretty newer and need some more and detailed examples.
Can anybody help me?
Thanks in advance,
[[alternative HTML version deleted]]