r/Rsoftware • • Dec 07 '17

Could someone help me with this R problem? :( #needanxmasmiracle

0 Upvotes

I am totally lost on where to even start in this problem with R besides knowing the dimensions and installing it lol 😭 I honestly want to understand the logical steps I seem to be missing. Thanks in advance, nerds! I love you. Too soon?

A real estate economist collects information on 1000 house price sales from two similar neighborhoods - one called ‘’University Town” bordering a large state university, and one a neighborhood about three miles from the university - to examine the university effect on house prices. Data is contained in the file utown.csv. There are 1000 observations on the variables: PRICE = house price (in 1000 dollars) UTOWN = an indicator variable (1 for houses near the university; 0 otherwise) SQFT = house size (in 100 square feet) AGE = house age (in years) POOL = an indicator variable (1 if a pool is present; 0 otherwise) FPLACE = an indicator variable (1 if a fireplace is present; 0 otherwise) Note: The variables are expressed as lowercase in the dataset. (a) Estimate the following regression model: (1) pricei = β0 + β1utowni + β2sqf ti + β3utowni · sqf ti + ui . Using the regression results (with robust standard errors), interpret the coefficients on the independent variables (not intercept), respectively. (b) Does the effect of utown on price depend on sqf t? Use either a two-tailed t-test or a 95% confidence interval for that. (Hint: which variable is relevant to the question.) (c) Does utown have a statistically significant effect on price? Use a heteroskedastic- robust F-test (because utown is shown twice in the regression equation). (d) Plot the relationship between sqrt and price. and add the estimated regression function relating price to utown for utown = 0 and for utown = 1.(Hint: Is your plot consistent with the findings in (b) and (c)?) e) What is the estimated effect of utown on price at the average value of sqf t? (Hint: if you take derivative the equation with respect to utown, you will see an equation for the effect.) (f) Construct a 95% confidence interval for the effect of utown on price when sqf t = 25.4 (median value). [Hint: In the case, main problem is to find standard error of the effect (i.e. standard error of βˆ 1 + 25.4 × βˆ3). For this, you firstly need to transform the original regression model . And then you will obtain the standard error of βˆ 1 + 25.4 × βˆ3 by re-estimating the transformed model]. (g) Estimate an alternative model: (2) ln(pricei) = β0 +β1utowni +β2sqf ti +β3sqf ti·utowni + ui . How much is the location premium for houses near the university,i.e. the expected difference in house prices between the university town and others? Is it different from the result in (a)? How different?

Here is our data: https://docs.google.com/spreadsheets/d/1GetbmjNXpyQQj18X3C1cQaYNrf7V8DMqkWX56oclM6I/edit?usp=sharing


r/Rsoftware • • Apr 26 '20

I'm from America where it is the 25th

Post image
0 Upvotes

r/Rsoftware • • May 13 '24

Friv.com

0 Upvotes

R/Softwaregore I was playing on ‘My Trendy Oversized Outfits’ on friv.com and when I clicked on one of the girls. This happened. I’m scared.


r/Rsoftware • • Apr 29 '21

I am so tired of this... please help me

0 Upvotes

Hello there, Ill get straight to the point,

So I'm doing a paper for university about the detribution of a snail, details are unimportant.

My data is imported to R in a dat.frame type, I have 4 columns named "Arvore" (Tree), "Niveis" (levels), "Substrato" (Substrate) and the final one which is the response one is "Conta" (Individual count).

Here are some images that can help you visualize:

I made some pretty boxplots and it was all going swell untill i had to test the relationships of these variables, and what i mean is, I had to test if in the level "Bark" there was more individual than in "leaves", and the same goes for the others.

So what I did was, I tested the normality with these codes:

and the results where the following:

It gave me a very low p value for any of the levels of all the variables.

Which according to my knowledge means they don't show normality so I have to use non parametic statistical tests.

My next thought was to do those separatelly:

So i did a wilcoxon test for both the variable "Substrato" and then the variable "Arvore".

like this:

as u can see the p value is like low so we reject H0 and conclude the means are significantly different.

I did the same for substrate and it gave me a very low p value aswell which I wasn't surprised after looking at the boxlots.

Continuing the thought process I made a kruskal wallis for the variable "Niveis" since it has 3 levels:

After this i made the dunn test right

alright so by the end of this i thought i had all i needed,

As it turns out i do not,

teacher said I had to do a PERMANOVA, and I understood the concept, the function is used to compare all of the levels grouped right? anyway's I spent the last 5 hours searching for how to make a PERMANOVE on different levels and I found a code that I thought would work and then i counldn't find the package... probably because I am tired and the brain is not functioning at full capacity but can someone please give me an answer to this..?

Please tell me how to code a PERMANOVA with the following data:


r/Rsoftware • • Mar 19 '15

Help me Please

1 Upvotes

I need to figure out how to get estimator equations into R so that I can do simulations and figure out which estimators are best for certain simulations. Here are my three estimator formulas http://gyazo.com/8f55d383e91c1212f89b7632c53d215a


r/Rsoftware • • Apr 26 '19

OST to PST Converter tool

Thumbnail
behance.net
0 Upvotes

r/Rsoftware • • Dec 12 '20

How do I read small text now...

Post image
1 Upvotes

r/Rsoftware • • Mar 06 '23

curly brackets in R ... what do they mean

1 Upvotes

r/Rsoftware • • Jun 05 '19

Carnegie Mellon's Alice software's purpose

Post image
0 Upvotes

r/Rsoftware • • Jun 02 '20

Don’t know what to put as a title

Post image
0 Upvotes

r/Rsoftware • • Oct 15 '22

R codes for successive approximations

Post image
0 Upvotes

r/Rsoftware • • Sep 03 '19

Idk How to Snapshot on PC Or if you can So I posted this pic with "Ok Wtf" on facebook, Got the image from my profile, Then boom, Now on reddit

Post image
1 Upvotes

r/Rsoftware • • Sep 18 '17

Allavsoft Video Downloader Converter 3.15.1.6468 Crack with License Key

Thumbnail
cracksdown.com
0 Upvotes

r/Rsoftware • • Sep 03 '19

What?

Post image
0 Upvotes

r/Rsoftware • • Jan 06 '19

Ads REALLY WORK!

Post image
0 Upvotes

r/Rsoftware • • Jan 23 '24

Looking for free Decorrelation Stretch Software

2 Upvotes

Hi, I'm currently looking for a decorrelation stretch software (the most well known example is probably DStretch).

A few years ago there was the option to get software for this for free, nowadays it seems to be a little more complicated.
Is there still software like this out there? Please note im explicitly not looking for pirated software or sth. like that.


r/Rsoftware • • Dec 21 '23

New to R

1 Upvotes

Hello I need to learn how to use R for statistical analysis of large data. I'm only familiar with SPSS software. Any and all leads to R would be appreciated. I already found a YouTube tutorial and a random list of commands.


r/Rsoftware • • Jun 05 '18

Need help with an assignment - Plotting X bar and R charts for data.

1 Upvotes

I'm new to this. I'm having 20 samples with each sample having a size of 5. Unable to enter data and get the graph. Please help!


r/Rsoftware • • Mar 30 '21

R code for harmonic mean

2 Upvotes

Hi guys,

I’d really like to know which function you could write to get the harmonic mean without using the expression « harmonic mean » in a script ?


r/Rsoftware • • Apr 18 '24

Hi, I would like to know how to update the system of this TV, I have not found useful information on how to change the firmware or if that is possible

Thumbnail
gallery
1 Upvotes

r/Rsoftware • • Apr 09 '20

Linux install help

3 Upvotes

I'm hitting a road block. I'm running Mint 19.3 (Ubuntu 18.04 bionic) and have tried to install R a few times, to no avail. I'm not sure if anyone here can help, but I figured I'd give it a go:

The current error when running sudo apt-get install r-base is the following:

The following packages have unmet dependencies: r-base : Depends: r-base-core (>= 3.6.3-1bionic) but it is not going to be installed Depends: r-recommended (= 3.6.3-1bionic) but it is not going to be installed E: Unable to correct problems, you have held broken packages.

but after adding r-base-core I get

r-base-core : Depends: libtcl8.6 (>= 8.6.0) but it is not installable ~~ Depends: libtk8.6 (>= 8.6.0) but it is not installable~~

This seems to be the breakdown. I've removed the PPA and key, updated, added back, updated, used -f options, purged, etc. Somehow, the libtck and libtk broke, which is really messing it up. My big issue is I need 3.6.2 (to work with Sage) and most of the PPAs are up to 3.6.3 which messes things up, so I was trying to install this downgraded. But somehow, something I did broke dependencies. It seems lots of people online have met the error, but after a few hours of searching, I'm unable to resolve.

I fixed the above, but after trying

sudo apt-get install r-base=3.6.2-1bionic r-recommended=3.6.2-1bionic

when running R, it still lists its version as 3.6.3.

If you can, please help!


r/Rsoftware • • Jun 25 '21

Interpretation of a plot for linear assumption

1 Upvotes

Good morning everyone!I want to ask help to interpretate a plot about linearity assumption for error distribution in a simple Linear regression model, as shown in the attached picture.

As i intended it, there should not be any linearity assumption, as the rapresentation create "a pattern" (like a "vertical-horiented stripe"). Am i interpreting it correctly?

Thanks to everyone :)


r/Rsoftware • • Jan 24 '19

How to setup proxy in Rstudio

1 Upvotes

Hello. In my job we have a proxy, how can I set up the proxy in Rstudio so I can download packages? Thank you.


r/Rsoftware • • Sep 16 '21

Help with weighted lottery system

1 Upvotes

Hi I am a bit of a beginner with programming / sheets or excel and am looking for help / ideas for a weighted lottery system. It is complicated because I work for a non profit and we want to prioritize certain individuals (specifically need based ones) to be more likely to be selected as a participant of a camp. There would be several factors including, if individuals require financial assistance, how many days they will be at the camp 1-3, along with another factor or two (which are still to be determined). Any advice or suggestions would be greatly appreciated.


r/Rsoftware • • Dec 27 '20

h e l p m e

1 Upvotes

i dont know anymore