Hi
I have a csv file of Names based on male and female managers. Is there some
code in R to identify the gender by names?
ThanksSaba
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https
Hi
I have a matrix that contains 1565 rows and 132 columns. All the observations
are either "0" or "1". Now I want to keep all the observations same but just
one change, i.e. whenever there is "1", the very next value in the same row
should become "1". Please see below as a sample:
>df
0
Hi
If a package is not loading, it is a matter of concern. Therefore, I have asked
for the assistance or guidance in this regards.
Saba
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
P
Hi
I am trying to install GARPFRM package to R (version: 3.3.0) by following steps:
(a) install.packages("GARPFRM", repos="http://R-Forge.R-project.org";)
It gives following Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.0/bin/i386/R" CMD INSTALL -l
"C:\Users\ssehrish\Documents\R
Hi
I have two dataframes(df1, df2) with equal number of columns (1566) but lesser
rows in df2 (2772 in df1 and 40 in df2). Row names are
identical in both dataframes (date). I want to replace NAs of df1 with the
values of df2 for all those rows having identical row names (date) but
without
Hi
I need to insert a blank row after every row in R data frame. I have achieved
it through:
df[rep(1:nrow(df),1,each=2),]
But it inserts a row with name of previous row, while i want a complete blank
row without any name/title.
Please guide me
Regards
Saba
Hi
I have two data frames as shown below (second one is obtained by aggregating
rows of similar IDs in df1.). They both have similar number of columns but rows
of df2 are lesser than rows of df1.
df1:
ID A B
1 1 2
1 0 3
2
Hi
I have two data frames as shown below (second one is obtained by aggregating
rows of similar IDs in df1.). They both have similar number of columns but rows
of df2 are lesser than rows of df1.
df1:
IDAB
1 12
1 03
2 5NA
Thanks a lot. Its really helpful
Regards
Saba
On Saturday, 23 April 2016, 6:50, Giorgio Garziano
wrote:
Since the aggregate S3 method for class formula already has got na.action =
na.omit,
## S3 method for class 'formula'
aggregate(formula, data, FUN, ...,
subset, na.action = na.o
Hi
I have two columns in data frame. First column is based on "ID" assigned to
each group of my data (similar ID depicts one group). From second column, I
want to identify highest value among each group and want to assign the same ID
to that highest value.
Right now the data looks like:
ID
Hi
I have a data frame with rows specifying companies (codes are assigned to
companies) and columns specify months (monthly data). The data is based on male
(M) and female (F) information for each month. Following is an example of how
my data looks like:
01 02 03 04
001 M M
HiI have a data frame with rows specifying companies (codes are assigned to
companies) and columns specify months (monthly data). The data is based on male
(M) and female (F) information for each month. Following is an example of how
data looks like:
01 02 03 04001 na M M M001 M M M F002 M F F
Hi
I have four variables and the time series data for each variable consists of
values for past 10 years on monthly basis. I want to get descriptive stats for
these four variables separately (mean, median, sd, min, max).
The data I import to R consists of different columns, where each column gi
Saba
>
>
> On Saturday, 19 December 2015, 15:06, Achim Zeileis
> wrote:
>
>
> On Sat, 19 Dec 2015, Saba Sehrish via R-help wrote:
>
> > Hi I am using NeweyWest standard errors to correct lm( ) output. For
> example:
> > lm(A~A1+A2+A3+A4+A5+B1+B2+B3+B4+B5
Thank you. The issue is resolved by scaling the data in millions.
Saba
On Saturday, 19 December 2015, 15:06, Achim Zeileis
wrote:
On Sat, 19 Dec 2015, Saba Sehrish via R-help wrote:
> Hi I am using NeweyWest standard errors to correct lm( ) output. For example:
> lm(A~A1+A2+A3
Hi I am using NeweyWest standard errors to correct lm( ) output. For example:
lm(A~A1+A2+A3+A4+A5+B1+B2+B3+B4+B5)
vcovNW<-NeweyWest(lm(A~A1+A2+A3+A4+A5+B1+B2+B3+B4+B5))
I am using package(sandwich) for NeweyWest. Now when I run this command, it
gives following error:
Error in solve.default(diag(n
Hi
I am trying to apply linear regression on the attached data of two variables
(DODGX, TRMCX) in R by taking time lag=5 for both of them. Each time I run this
command, it gives me following error:
Error in lm.fit(x,y,offset = offset, singular.ok = singular.ok, ...) :
NA/NaN/lnf in 'y'
In add
(B~B1+B2+B3+B4+B5+A1+A2+A3+A4+A5)
Following error is occurring:
Error in lm.fit(x,y,offset = offset, singular.ok = singular.ok, ...) :
NA/NaN/lnf in 'y'In addition: Warning message:In model.response(mf,"numeric") :
NAs introduced by coercion
RegardsSaba
On Friday, 18 Decemb
Hi I am trying to apply linear regression on the attached data of two variables
(DODGX, TRMCX) in R by taking into account time lag=5 for both of them. Each
time I run this command, it gives me following error:
Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
NA/NaN/Inf
Hi
I will be grateful if someone please tell me the programming to run regression
on time series data through "For Loop".
Regards.
Saba
Sent from Yahoo Mail on Android
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing lis
Hi
I am a PhD student and I want to learn how to run Linear regression with Lag-5
on R through "For Loop". Please find the details below:
1- I need guidance about Coding/ Programming for Simple Linear
Regression with Lag-5 on R.
2- I have time series data of “Daily R
21 matches
Mail list logo