Displaying 20 results from an estimated 400 matches similar to: "Help with lm and multiple linear regression?"
2007 Dec 27
2
Help with lm and multiple linear regression? (Plain Text version)
(Apologies the previous version was sent as rich text)
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
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:
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 =
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 =
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
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
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
2008 Apr 18
2
has_one self reference
Imagine the following situation:
model Person, with the default name, address, location data.
Person has either one or no superior which in turn is also a Person
model instance.
I would expect something like
has_one :superior, :class_name => "Person"
but where would I place the belongs_to line that goes with it and what
arguments do I need to supply? And what kind of foreign keys
2015 Aug 11
2
webrtc no audio
I'm having the same issue! The difference in my case is Asterisk server has
a public IPv4 and the browser is behind a single NAT.
I'm forwarding my configuration below (which I posted previously on
asterisk-users).
How can we debug ICE negotiation?
---------- Forwarded message ----------
From: Vinicius Fontes <vinicius at aittelecom.com.br>
Date: 2015-07-27 13:54 GMT-03:00
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
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
2006 Jul 28
2
has_many :through with multiple paths
Hi all.
I am currently thinking about how to do the following:
I have the following models.
Team
Person
Team has various positions (manager, programmer etc.) I would like each
one of those positions to reference one or more Person records. A single
Person record could be on 6 different teams at the same time in
different roles. the same person could even be on the same team multiple
times
2002 Oct 31
2
Problems of groups accessing shared directory
Hello,
I have problems with people having different groups who access a shared
directory via samba.
The requirements are:
1. There are people with group "group1" and group "group2" in /etc/passwd
2. 3 people from group "group1" and 2 people from group "group2" are allowed
to access a shared directory and have read/write access to that directory.
Our
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
2004 Nov 29
0
Multiple groups and access
Hi folks.
I have set up a Samba server for a small company to share docs. The
implementation was smooth and has been stable ever since. Now, the admin
staff needs a change made and I am wondering how best to implement it as
painlessly as possible.
The requirement is to change the folder/file access so it denies access
for some members while still allowing access for others. Simple, right?
Wrong.
2007 Feb 23
0
rsync: file too large (27) errors.
I am getting a file too large error. I have googled this and read bug
reports on file. I have upgraded rsync on the system that appeared to be
having problems. I am still not able to find a solution.
I am using Dirvish for backups and was directed to ask here as this was
determined to be more of an rsync issue.
Backup1 = system that initiates Dirvish and pulls the data from other hosts.
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 |
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
2010 Jan 24
1
Categorical data repeated on time analysis
Hi,
I am trying to analyze a data set when nematodes were killed after a
drug administration.
We have counted the number of nematode died and the number of nematode
survival at three time points.
So, there are 100% died in some plot and could be found zero percent
in another. Then, the data set have a lot of zeros.
I have googled and found a lot of information. Moreover, my data isn't
2013 Apr 01
0
ggplot2 label
Hello all!
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()
the data used is: